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
{{ message }}
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
I am getting the same issue using Tensorflow 1.10. I think the TensorFlow API changed quite a bit since version 1.5 (which Tangent is using for testing on Travis) and it broke the shape_checkers function among many others. The fact that the lead dev(s) haven't responded to this seemingly simple issue in three months is disconcerting as a potential user.
Try using Tensorflow 1.5 or if you must use a late Tensorflow, you can get derivatives at run-time using the GradientTape object
The fix should be fairly straightforward by adding some calls to convert primitives to tensors in tensor_shapes_match and then adding int, float, etc. to the tuple passed to register_all_shape_checker.
Install Tangent and Eager Execution
I ran the following commands with the Ubuntu 16.04 Docker image:
v0.1.9
in my local tangent repo.docker run --rm -it -v $PWD:/tangent /bin/bash
where$PWD
refers to my local git clone of tangent.pip install -r /tangent/requirements.txt
Run the Program
I copied the TF Eager example from
/README.md
and tried to run it:I ran the above program by executing the following command in the container:
The Error Messages
It sees the the autodiff works as it prints the derived
dfdW
, but it doesn't work runningdfdW
:It complains that
out = tf.reduce_sum(h2)
, which has typeEagerTensor
, andbout
, which is offloat
, do not have the same type.Could you please recommend the right way to handle this error? It doesn't seem work if I pass in an EagerTensor to bout.
Thank you!
The text was updated successfully, but these errors were encountered: