(self, other)
| 705 | return self |
| 706 | |
| 707 | def _equal(self, other) -> bool: |
| 708 | a = self.array |
| 709 | b = other.array |
| 710 | return a is b or ( |
| 711 | a.dtype == b.dtype |
| 712 | and a.shape == b.shape |
| 713 | and a.flat[0] == b.flat[0] |
| 714 | and np.array_equal(a, b) |
| 715 | ) |
| 716 | |
| 717 | |
| 718 | class PyTorchVariable(Variable): |
nothing calls this directly
no outgoing calls
no test coverage detected