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 was archived by the owner on Dec 2, 2023. It is now read-only.
Traceback (most recent call last):
File "scratch.py", line 12, in <module>
ddlossddtheta = tangent.autodiff(dlossdtheta, mode='forward')
[...]
File "/Users/lericson/devel/.../env/src/tangent/tangent/fence.py", line 256, in visit_IfExp
self._reject(node, 'Conditional Expressions are not supported')
File "/Users/lericson/devel/.../env/src/tangent/tangent/fence.py", line 91, in _reject
self._raise_error(msg)
File "/Users/lericson/devel/.../env/src/tangent/tangent/fence.py", line 74, in _raise_error
raise TangentParseError(msg, ('<stdin>', lineno, offset + 1, line))
File "<stdin>", line 3
axis_shape = x.shape if axis is None else tuple(x.shape[a] for a in axis)
Replacing the function call with inlining the function solves the issue.