sciai.utils
Util module, containing commonly used Python utils, MindSpore utils, plot utils, etc.
Concatenate optimal checkpoint name according to existing namespace arguments.  | 
|
Map from float data type string to MindSpore data type.  | 
|
Map from auto mixed precision level string to MindSpore data type.  | 
|
Map from MindSpore data type to numpy data type.  | 
|
Download the dataset and(or) checkpoint files for model named model_name.  | 
|
flatten data and add an extra dimension at the end.  | 
|
Fabricate a lazy function which can be directly called later without arguments.  | 
|
Lazy property decorator signature.  | 
|
Log configuration.  | 
|
Create directories for a sciai project.  | 
|
Plot a new figure.  | 
|
Parse arguments according to terminal/bash inputs and config dictionary.  | 
|
Print and log args line by line.  | 
|
Print in the standard output stream as well as into the log file.  | 
|
Print end-to-end time elapsed for a function.  | 
|
Save figure in both pdf and png.  | 
|
Save figure result in given directory.  | 
|
Set random seed everywhere.  | 
|
Get time in milliseconds number, e.g., 1678243339.780746.  | 
|
Get time in string representation, e.g., "2000-12-31-23-59-59".  | 
|
Set cell(s) to a given data type.  | 
|
Cast array(ies)/tensor(s) to a given MindSpore data type.  | 
|
Convert a given param into tuple if it's not, otherwise keep it unchanged.  |