Closed AidanRocke closed 6 years ago
Checkout: https://github.com/tensorflow/tensorflow/issues/12927
@davidjesusacu, any ideas?
Hi AidanRocke,
Is it possible for you to redo the experiment in python 2.7.x environment? It worked for me when running python 2.7.x in a virtualenv (w and w/o gpu). [Though most likely this problem might not due to the difference in python versions]
Best, Max
yeah, it seems you are using python3.6. try using python 2.7 and tf1.3 it should work
@amlankar @Max-Fu @davidjesusacu
I tried the following:
from tensorflow.contrib.seq2seq.python.ops import beam_search_ops
import tensorflow as tf
g = tf.Graph()
model_path = './polyrnn-pp/models/poly/polygonplusplus.ckpt.meta'
with g.as_default() as g:
tf.train.import_meta_graph(model_path)
beam_search_ops should take care of the GatherTree operation but I now have the following error:
ValueError: NodeDef expected inputs 'int32, int32, int32, int32' do not match 3 inputs specified; Op<name=GatherTree; signature=step_ids:T, parent_ids:T, max_sequence_lengths:int32, end_token:T -> beams:T; attr=T:type,allowed=[DT_INT32]>; NodeDef: GatherTree = GatherTree[T=DT_INT32, _output_shapes=[[?,1,8]], _device="/device:GPU:0"](TensorArrayStack_1/TensorArrayGatherV3, TensorArrayStack_2/TensorArrayGatherV3, Select_69)
Could not find a version that satisfies the requirement tensorflow-gpu==1.3.0 (from -r requirements.txt (line 26)) (from versions: 0.12.0rc1, 0.12.0, 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0)
No matching distribution found for tensorflow-gpu==1.3.0 (from -r requirements.txt (line 26))
I just made a new virtualenv and ran pip install -r requirements.txt and got no issue for tensorflow-gpu==1.3.0. Here's the final output that I got:
So the problem appears to be that I'm using a Mac: https://stackoverflow.com/questions/49728797/pip-install-package-version-failed-in-installing-tensorflow-gpu-in-mac-which
Makes sense! Totally overlooked that, thanks for letting us know!
I had some trouble attempting to visualise the 'poly' model using tensorboard although I can visualise the evalnet and the ggnn model. It still isn't clear to me that I made an error so I'll list the steps I followed before trying to load the polygon model meta graph.
conda create -n tf13 python=3.6 anaconda
pip install --ignore-installed --upgrade tensorflow==1.3
this returns the following error:
Update: I checked issues 2 and 3 and can confirm that besides using TF version 1.3.0 I'm also using CUDA version 8.0: