(self, other: object)
| 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) |