<p dir="auto">I am raising this issue following <a href="https://stackoverflow.com/questions/35443080/tensorflow-critical-graph-operations-assigned-to-cpu-rather-than-gpu?lq=1" rel="nofollow">this stackoverflow discussion</a>. I found that there is not that much support for float64 ops, that is needed for some numerical applications. A number of other issues  <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133043841" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1061" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1061/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1061">#1061</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="126369806" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/761" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/761/hovercard" href="https://github.com/tensorflow/tensorflow/issues/761">#761</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="122928655" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/547" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/547/hovercard" href="https://github.com/tensorflow/tensorflow/issues/547">#547</a> and PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133491621" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1089" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/1089/hovercard" href="https://github.com/tensorflow/tensorflow/pull/1089">#1089</a> have been raised around this.</p>
<p dir="auto">On the basis of how my graph is initialised, things like <strong>MatMul</strong> (also raised in this other <a href="https://stackoverflow.com/questions/35428297/tensorflow-issue-with-gpu-on-matmul-gpu-isnt-recognized?lq=1" rel="nofollow">stackoverflow question</a>), <strong>Mean, L2Loss, Mean_grad/Prod, Mul_grad/Sum, AddN, SoftmaxCrossEntropyWithLogits</strong> are not implemented for float64.</p>
<p dir="auto">Would it be a good idea to extend PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133491621" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1089" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/1089/hovercard" href="https://github.com/tensorflow/tensorflow/pull/1089">#1089</a> to more ops?</p>
<p dir="auto">I recently ran into a problem, while using bazel to build a project.  This project is compiled as a dynamic linking library, using PyImport_Import to import python module. when there is "import tensorflow as tf" in the python file , application who calls the dynamic linking library crashed everytime, but when it‘s not there ,everything works just fine. where is the problem?<br>
my tensorflow version is 1.0.0,python 2.7.0,bazel 0.4.3</p>
<p dir="auto">here is the console information when the application crashes:</p>
<blockquote>
<p dir="auto">F tensorflow/core/framework/function.cc:1015] Check failed: GetOpGradFactory()-&gt;insert({op, func}).second Duplicated gradient for Softmax</p>
</blockquote>
<p dir="auto">here is the test python file looks like:<br>
`from <strong>future</strong> import print_function<br>
import tensorflow as tf<br>
import os<br>
import time<br>
from itertools import izip<br>
import numpy as np<br>
import wrapt<br>
import cv2<br>
def get_int( ):<br>
a = 10<br>
b = 20<br>
return a + b</p>
<p dir="auto">def get_str( s1, s2 ):<br>
#return s1 + s2<br>
#return 'Hello , TY'<br>
return ('Hello, World', 10, 20)`</p>
<p dir="auto">here is the source code of .so file:<br>
<code class="notranslate">   Py_Initialize(); if ( !Py_IsInitialized() ) { return -1; } PyEval_InitThreads(); PyThreadState *mainThreadState = NULL; //  save a pointer to the main PyThreadState object  mainThreadState = PyThreadState_Get(); //  release the lock  PyEval_ReleaseLock(); char* mockargv[1]={(char*)""}; PySys_SetArgv(1,mockargv); PyRun_SimpleString("import sys"); PyRun_SimpleString("sys.path.append('./')"); pName_ = PyString_FromString("test_py"); displayPyObject(pName_); if(pName_ == NULL){ return -1; } pModule_ = PyImport_Import(pName_); displayPyObject(pModule_);</code></p>
<p dir="auto">and here is the dynamic linking library part of my BUILD file<br>
<code class="notranslate">cc_binary( name = "test.so", linkshared = 1, deps = [ ":test_lib", ], ) cc_library( name = "test_lib", visibility = ["//visibility:__subpackages__"], srcs = glob(["test.cpp" ], ), includes=["test.h"], linkopts = [ "-lm -lpthread -L/usr/lib/python2.7 -lpython2.7 -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lfreeimage" ], deps = [ "//tensorflow/cc:cc_ops", "//tensorflow/core:framework", "//tensorflow/core:framework_internal", "//tensorflow/core:tensorflow", ], ) </code></p>