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.
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.
The text was updated successfully, but these errors were encountered:
I think the state of HVP computation is actually pretty broken in both the latest release and said commit. I can't get HVPs to work for anything that isn't basically an identity function.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Minimal test case:
Fails on computation of
ddlossddtheta
, withReplacing the function call with inlining the function solves the issue.
The text was updated successfully, but these errors were encountered: