Save parameter dictionary to file. Parameters ---------- params : dict of str to Tensor The parameter dictionary. path: str The path to the parameter file.
(params, path)
| 64 | |
| 65 | |
| 66 | def save_param_dict_to_file(params, path): |
| 67 | """Save parameter dictionary to file. |
| 68 | |
| 69 | Parameters |
| 70 | ---------- |
| 71 | params : dict of str to Tensor |
| 72 | The parameter dictionary. |
| 73 | |
| 74 | path: str |
| 75 | The path to the parameter file. |
| 76 | """ |
| 77 | return _ffi_api.SaveParamsToFile(_to_tensor(params), path) |
| 78 | |
| 79 | |
| 80 | def load_param_dict(param_bytes): |
nothing calls this directly
no test coverage detected
searching dependent graphs…