pararealml.utils package¶
Submodules¶
pararealml.utils.rand module¶
pararealml.utils.tf module¶
pararealml.utils.time module¶
-
pararealml.utils.time.mpi_time(function_name: Optional[str] = None) → Callable[source]¶ Times the execution of the wrapped function using MPI, prints the execution time using the provided function name on the first rank, and returns the return value of the wrapped function along with the execution time.
Parameters: function_name – the name of the function Returns: a function that returns the wrapped function
-
pararealml.utils.time.time(function_name: Optional[str] = None) → Callable[source]¶ Times the execution of the wrapped function, prints the execution time using the provided function name, and returns the return value of the wrapped function along with the execution time.
Parameters: function_name – the name of the function Returns: a function that returns the wrapped function