Shortcuts

PassThroughProfiler

class lightning.pytorch.profilers.PassThroughProfiler(dirpath=None, filename=None)[소스]

기반 클래스: lightning.pytorch.profilers.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)[소스]

Defines how to start recording an action.

반환 형식

None

stop(action_name)[소스]

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

반환 형식

None