Skip to content

Commit cb0758c

Browse files
Aarsh-WankarricardoV94
Aarsh-Wankar
authored andcommitted
Improve NotImplementedError message for gradient in Op class
1 parent 9ab8df5 commit cb0758c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/graph/op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def grad(
366366
.. [1] Giles, Mike. 2008. “An Extended Collection of Matrix Derivative Results for Forward and Reverse Mode Automatic Differentiation.”
367367
368368
"""
369-
raise NotImplementedError()
369+
raise NotImplementedError(f"grad not implemented for Op {self}")
370370

371371
def L_op(
372372
self,

0 commit comments

Comments
 (0)