(cls, numpy_array: ndarray, name: str = None)
| 137 | |
| 138 | @ classmethod |
| 139 | def parsing_from_numpy_ndarray(cls, numpy_array: ndarray, name: str = None): |
| 140 | shape = list(numpy_array.shape) |
| 141 | dtype = DataType.convert_from_numpy(numpy_array.dtype) |
| 142 | return TensorMeta(dtype=dtype, shape=shape,tensor_name=name) |
| 143 | |
| 144 | @ classmethod |
| 145 | def parsing_from_torch_tensor(cls, torch_tensor: Tensor, name: str = None): |
nothing calls this directly
no test coverage detected