netket.utils.timing.timed

Contents

netket.utils.timing.timed#

netket.utils.timing.timed(fun=None, name=None)[source]#

Marks the decorated function to be timed individually in NetKet timing scopes.

If name is not specified, the qualified name of the function is used.

The profiling is disabled if no global timer is active.

Parameters:
  • fun (Callable) – Function to be decorated

  • name (Optional[str]) – Name to use for the timing of this line.