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 Oct 15, 2019. It is now read-only.
Looks like the computation graph breaks on the concatenation operation.
MWE:
importminpy.numpyasnpfromminpy.coreimportgraddeffoo_nocat(x):
return3*xdeffoo_cat(x):
catx=np.concatenate([x, x], axis=1)
returnnp.dot(catx, np.array([[1], [2]]))
test_x=np.array([[3]])
printgrad(foo_nocat)(test_x) # correct_output printgrad(foo_cat)(test_x) # should be the same
The text was updated successfully, but these errors were encountered:
Looks like the computation graph breaks on the concatenation operation.
MWE:
The text was updated successfully, but these errors were encountered: