Shortcuts

PassThroughProfiler

class pytorch_lightning.profiler.PassThroughProfiler(dirpath=None, filename=None)[source]

Bases: pytorch_lightning.profiler.profiler.Profiler

This class should be used when you don’t want the (small) overhead of profiling.

The Trainer uses this class by default.

start(action_name)[source]

Defines how to start recording an action.

Return type

None

stop(action_name)[source]

Defines how to record the duration once an action is complete.

Return type

None

You are viewing an outdated version of PyTorch Lightning Docs

Click here to view the latest version→