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

dl2c = tf.stop_gradient(dl2c) - Failed to convert object of type <class 'list'> to Tensor #4

Open
ebalda opened this issue Apr 3, 2018 · 1 comment

Comments

@ebalda
Copy link

ebalda commented Apr 3, 2018

Traceback (most recent call last):
File "tools/train.py", line 23, in <module>
solver.train_model()
File "./solver.py", line 57, in train_model
new_loss, self.total_loss = self.construct_graph(scope)
File "./solver.py", line 45, in construct_graph
new_loss, g_loss = self.net.loss(scope, self.conv8_313, self.prior_boost_nongray, self.gt_ab_313)
File "./net.py", line 132, in loss
dl2c = tf.stop_gradient(dl2c)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/gen_array_ops.py", line 5220, in stop_gradient
"StopGradient", input=input, name=name)
.
.
.
TypeError: Failed to convert object of type <class 'list'> to Tensor. Contents: [None]. Consider casting elements to a supported type.

PS: It seems to me that this script was made using Python 2.7, which tensforflow version do you use?
Could I ask for the dependencies?

@govindvs
Copy link

It will be very helpful if you could comment or suggest another workaround.

I am using python 2.7. I am also experiencing the same trouble. what factor are u trying to extract with that step . where is it described. your input will be very helpful

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