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