-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Interaction between tf.map_fn and tf.gradients #7643
Comments
@yuanbyu, do you have any ideas? @daniellevy , could you try 1.0, please and see if this is still a problem. |
Yes the problem still occurs with v1.0 with the same error message. |
I think this works
You basically just build a giant empty tuple and fill it in as you go. dynmaic_rnn does something similar to this. |
Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks! |
Hi,
I am using Tensorflow v0.11 and I have tried on Mac OS X and Centos 6
I am running into an error when running the following code:
I basically want to have the following but without a fixed batch size:
grads = [tf.gradients(h[t], W)[0] for t in range(batch_size)]
My error is:
I have tried the following workaround using
scan
instead ofmap_fn
with a zero initializer but to no avail:Is this a know issue?
The text was updated successfully, but these errors were encountered: