提交 cb0758c1 authored 作者: Aarsh-Wankar's avatar Aarsh-Wankar 提交者: Ricardo Vieira

Improve NotImplementedError message for gradient in Op class

上级 9ab8df51
......@@ -366,7 +366,7 @@ class Op(MetaObject):
.. [1] Giles, Mike. 2008. “An Extended Collection of Matrix Derivative Results for Forward and Reverse Mode Automatic Differentiation.”
"""
raise NotImplementedError()
raise NotImplementedError(f"grad not implemented for Op {self}")
def L_op(
self,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论