Closed menglin0320 closed 8 years ago
I've not used anaconda, but I think it should be the same.
Clone this repository into any folder on your computer, and don't move anything. Simply run the build_user_op.sh file, and it should compile the ops.
Then, you just have to import these compiled files from your code. Take a look at my example here, in the second code block - see how I'm importing the .so
files? Do the same thing, but provide the path to wherever on your system the compiled files are located.
NotFoundError Traceback (most recent call last)
The problem is on the step running these two cammands
bazel build -c opt --config=cuda //tensorflow/core/user_ops:roi_pooling_op.so
bazel build -c opt --config=cuda //tensorflow/core/user_ops:roi_pooling_op_grad.so
in build_user_op.sh, I feel I should do it on the root of the tensorflow I'm using instead of do it on the Cloned repository. But I don't know where is the root since the lay out of tensorflow in anaconda is pretty different from normal tensorflow.
As I said I found the include folder highly possible to correspond to the root file on the cloned repository, but that doesn't work. I copied the script to the include file and tried to run it. But I got
The 'build' command is only supported from within a workspace.
The 'build' command is only supported from within a workspace.
So I'm very confused now
and my tensorflow version is 0.9 and I found the tensorflow you are using is likely to be 0.8, will that cause any trouble???
It works now, thanks for your help.
I'm trying to follow the instruction here But I don't know where should I put the build_user_op.sh and call it if I'm using anaconda, I found /home/menglin/anaconda2/envs/tensorflow_env/lib/python2.7/site-packages/tensorflow/include is a pretty good choice and I put your user_ops on /home/menglin/anaconda2/envs/tensorflow_env/lib/python2.7/site-packages/tensorflow/include/ tensorflow/core/ But that doesn't work. And I don't know what to do now