- deephyper.evaluator.profile(*args, **kwargs)#
Decorator to use on a
run_functionto profile its execution-time and peak memory usage.
By default, only the run-time is measured, for example by using the decorator as follows:
@profile def run(config): ... return y
memoryargument is set to
True, the memory usage is also measured, for example by using the decorator as follows:
@profile(memory=True) def run(config): ... return y
memory (bool) – If
True, the memory usage is measured. Defaults to
a decorated function.
- Return type: