Saves data to the specified path.
mindio_acp.save(obj, path, open_way='memfs')
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
obj |
Mandatory |
Object to be saved |
Valid data object |
path |
Mandatory |
Data storage path |
Valid file path |
open_way |
Optional |
Saving mode.
memfs is used by default. |
|
>>> # Save to file >>> x = torch.tensor([0, 1, 2, 3, 4]) >>> mindio_acp.save(x, '/mnt/dpc01/tensor.pt')