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

Method __eq__

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

Source from the content-addressed store, hash-verified

795 return f"TensorRepr({self.storage_type}, {self.memory_layout})"
796
797 def __eq__(self, other: object) -> bool:
798 if not isinstance(other, TensorRepr):
799 return NotImplemented
800 return (
801 self.storage_type == other.storage_type
802 and self.memory_layout == other.memory_layout
803 )
804
805 def __ne__(self, other: object) -> bool:
806 return not self.__eq__(other)

Callers 1

__ne__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected