-
Notifications
You must be signed in to change notification settings - Fork 434
fail to import tangent #99
Comments
This is probably due to some change in one of the underlying platforms. Tangent is not being actively maintained any more, but it should be fairly straightforward to fix this by changing |
Could you please specify the exact code to add? I encounter this same problem while importing tangent after using the code in #95 . |
Sorry, it's been a while, and I don't remember why I suggested that. Have a look at https://github.com/google/tangent/blob/master/tangent/utils.py - the assertion failure suggests register_shape_function is called repeatedly with the same type, and it shouldn't. It would be useful to understand why it gets called repeatedly, and if doing that is fine, just remove the assertion. |
I have inatalled the tangent, but there is a problem when I import it
Here is a simple example:
import tangent
The error shows that :
File "/anaconda3/lib/python3.7/site-packages/tangent/utils.py", line 229, in register_shape_function
assert t not in shape_functions
AssertionError
Thanks in advance !
The text was updated successfully, but these errors were encountered: