pytorch_pfn_extras.profiler.get_tracer#

pytorch_pfn_extras.profiler.get_tracer(tracer_cls=<class 'pytorch_pfn_extras.profiler._tracing.ChromeTracer'>, *params)#

Gets the current global tracer.

Parameters:
  • tracer_cls (type of Tracer) – type of tracer to create if the global tracer hasn’t been initialized

  • params (Any) –

Return type:

Tracer