You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ubuntu 16.04, tf1.1, py2.7, when I run the main.py, I got the error as below:
Traceback (most recent call last):
File "main.py", line 348, in
main()
File "main.py", line 277, in main
image_tensor, label_tensor = data_generator.make_data_tensor(train=False)
File "/home/yirumeng/code/maml-master/data_generator.py", line 107, in make_data_tensor
filename_queue = tf.train.string_input_producer(tf.convert_to_tensor(all_filenames), shuffle=False)
File "/home/yirumeng/anaconda3/envs/tf-py2/lib/python2.7/site-packages/tensorflow/python/training/input.py", line 216, in string_input_producer
string_tensor = ops.convert_to_tensor(string_tensor, dtype=dtypes.string)
File "/home/yirumeng/anaconda3/envs/tf-py2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 639, in convert_to_tensor
as_ref=False)
File "/home/yirumeng/anaconda3/envs/tf-py2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 704, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/yirumeng/anaconda3/envs/tf-py2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 577, in _TensorTensorConversionFunction
% (dtype.name, t.dtype.name, str(t)))
ValueError: Tensor conversion requested dtype string for Tensor with dtype float32: 'Tensor("Const_17:0", shape=(0,), dtype=float32)'
so how can I solve this problem, thank you.
Which version of tf and python do you recommend?
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "main.py", line 348, in
main()
File "main.py", line 277, in main
image_tensor, label_tensor = data_generator.make_data_tensor(train=False)
File "/home/yirumeng/code/maml-master/data_generator.py", line 107, in make_data_tensor
filename_queue = tf.train.string_input_producer(tf.convert_to_tensor(all_filenames), shuffle=False)
File "/home/yirumeng/anaconda3/envs/tf-py2/lib/python2.7/site-packages/tensorflow/python/training/input.py", line 216, in string_input_producer
string_tensor = ops.convert_to_tensor(string_tensor, dtype=dtypes.string)
File "/home/yirumeng/anaconda3/envs/tf-py2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 639, in convert_to_tensor
as_ref=False)
File "/home/yirumeng/anaconda3/envs/tf-py2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 704, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/yirumeng/anaconda3/envs/tf-py2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 577, in _TensorTensorConversionFunction
% (dtype.name, t.dtype.name, str(t)))
ValueError: Tensor conversion requested dtype string for Tensor with dtype float32: 'Tensor("Const_17:0", shape=(0,), dtype=float32)'
so how can I solve this problem, thank you.
The text was updated successfully, but these errors were encountered: