(self, obj)
| 31 | |
| 32 | class TensorEncoder(json.JSONEncoder): |
| 33 | def default(self, obj): |
| 34 | if isinstance(obj, torch.Tensor): |
| 35 | return obj.tolist() |
| 36 | return super().default(obj) |
| 37 | |
| 38 | |
| 39 | class LambadaDataset(torch.utils.data.Dataset): |
nothing calls this directly
no outgoing calls
no test coverage detected