(path: str)
| 35 | |
| 36 | |
| 37 | def load_shape(path: str) -> List[int]: |
| 38 | with open(path + ".shape", "r", encoding="utf-8") as f: |
| 39 | return [int(x) for x in f.read().strip().split(",") if x] |
| 40 | |
| 41 | |
| 42 | def load_tensor(path: str) -> torch.Tensor: |
no outgoing calls
no test coverage detected