mpu.decorators

Decorators which are not in functools.

mpu.decorators.deprecated(func: Callable) Callable[source]

Mark functions as deprecated.

It will result in a warning being emitted when the function is used.

mpu.decorators.timing(func: Callable) Callable[source]

Measure the execution time of a function call and print the result.