MCPcopy Create free account
hub / github.com/pytorch/executorch / __eq__

Method __eq__

backends/vulkan/utils.py:839–850  ·  view source on GitHub ↗
(self, other: object)

Source from the content-addressed store, hash-verified

837 return f"[{', '.join(str(ts) for ts in self.vals)}]"
838
839 def __eq__(self, other: object) -> bool:
840 if not isinstance(other, TensorReprList):
841 return NotImplemented
842
843 if len(self) == len(other):
844 for self_val, other_val in zip(self.vals, other.vals):
845 if self_val != other_val:
846 return False
847
848 return True
849
850 return False
851
852 def __ne__(self, other: object) -> bool:
853 return not self.__eq__(other)

Callers 1

__ne__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected