logging
Utility functions for logging.
Functions
Convert big floating number to human readable string. |
|
Silences stdout within the invoked context. |
|
Prints only on the master process. |
|
Silences warnings that match a given pattern. |
- exception DeprecatedError
Bases:
NotImplementedError
Error for deprecated functions.
- no_stdout()
Silences stdout within the invoked context.
- num2hrb(num, suffix='')
Convert big floating number to human readable string.
- Parameters:
num (float) –
- Return type:
str
- print_rank_0(*args, **kwargs)
Prints only on the master process.
- silence_matched_warnings(pattern=None)
Silences warnings that match a given pattern.
- Parameters:
pattern (str) – The pattern to match against warning messages. Defaults to None.