(self)
| 88 | self._shape.is_compatible_with(spec_or_tensor.shape)) |
| 89 | |
| 90 | def __repr__(self): |
| 91 | return "TensorSpec(shape={}, dtype={}, name={})".format( |
| 92 | self.shape, repr(self.dtype), repr(self.name)) |
| 93 | |
| 94 | def __hash__(self): |
| 95 | return hash((self._shape_tuple, self.dtype)) |