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

Problem in eval.py #5

Open
parthplc opened this issue Dec 24, 2019 · 1 comment
Open

Problem in eval.py #5

parthplc opened this issue Dec 24, 2019 · 1 comment

Comments

@parthplc
Copy link

TypeError: Fetch argument dict_values([<tf.Tensor 'CharAccuracy/mean/update_op:0' shape=() dtype=float32>, <tf.Tensor 'SequenceAccuracy/mean/update_op:0' shape=() dtype=float32>]) has invalid type <class 'dict_values'>, must be a string or Tensor. (Can not convert a dict_values into a Tensor or Operation.)

@Ram-Godavarthi
Copy link

I also got this error.

You can avoid this error by putting eval_ops in a list.
line 70 in eval.py :
eval_op= list(eval_ops)

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

2 participants