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.
Op.__repr__
1 parent 5a39ef6 commit 39c1b49Copy full SHA for 39c1b49
pytensor/graph/op.py
@@ -621,6 +621,11 @@ def make_thunk(
621
def __str__(self):
622
return getattr(type(self), "__name__", super().__str__())
623
624
+ def __repr__(self):
625
+ props = getattr(self, "__props__", ())
626
+ props = ",".join(f"{prop}={getattr(self, prop, '?')}" for prop in props)
627
+ return f"{self.__class__.__name__}({props})"
628
+
629
630
class _NoPythonOp(Op):
631
"""A class used to indicate that an `Op` does not provide a Python implementation.
0 commit comments