Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some questions about the code #60

Open
RumengYi opened this issue Aug 9, 2019 · 0 comments
Open

some questions about the code #60

RumengYi opened this issue Aug 9, 2019 · 0 comments

Comments

@RumengYi
Copy link

RumengYi commented Aug 9, 2019

  1. 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.

  1. Which version of tf and python do you recommend?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant