We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eba527 commit 1d092e0Copy full SHA for 1d092e0
stochman/nnj.py
@@ -51,6 +51,10 @@ def __repr__(self):
51
tensor_repr = tensor_repr.replace("tensor", "jacobian")
52
tensor_repr += f"\n jactype={self.jactype.value if isinstance(self.jactype, Enum) else self.jactype}"
53
return tensor_repr
54
+
55
+ def view(self, *args, **kwargs):
56
+ out = super().view(*args, **kwargs)
57
+ return jacobian(out, self.jactype)
58
59
def __add__(self, other):
60
if isinstance(other, Jacobian):
0 commit comments