(self, dim=0)
| 74 | return self.shape[0] |
| 75 | |
| 76 | def squeeze(self, dim=0): |
| 77 | if self.shape[dim] != 1: |
| 78 | raise ValueError(f"dim {dim} is {self.shape[dim]} instead of 1!") |
| 79 | return TensorInfo(self.name, self.dtype, |
| 80 | self.shape[:dim] + self.shape[dim + 1:]) |
| 81 | |
| 82 | |
| 83 | class Session(object): |
no test coverage detected