MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __repr__

Method __repr__

machine_learning/automatic_differentiation.py:59–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.result_of: Operation = Operation(OpType.NOOP)
58
59 def __repr__(self) -> str:
60 return f"Variable({self.value})"
61
62 def to_ndarray(self) -> np.ndarray:
63 return self.value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected