composer.profiler.profiler_hparams#

Example usage and definition of hparams.

Classes

ProfilerEventHandler

Base class for profiler event handlers.

Hparams

These classes are used with yahp for YAML-based configuration.

class composer.profiler.profiler_hparams.JSONTraceHandlerHparams(flush_every_n_batches=100, buffering=- 1, output_directory='composer_profiler')[source]#

Bases: composer.profiler.profiler_hparams.ProfilerEventHandlerHparams

JSONTraceHandler hyperparameters.

See JSONTraceHandler for documentation.

Example usage with TrainerHparams:

prof_event_handlers:
    - json:
        flush_every_n_batches: 100
        buffering: -1
        output_directory: profiler_traces
class composer.profiler.profiler_hparams.ProfilerEventHandlerHparams[source]#

Bases: yahp.hparams.Hparams, abc.ABC

Base class for profile event handler hparams.

abstract initialize_object()[source]#

Constructs and returns an instance of the ProfilerEventHandler.

Returns

ProfilerEventHandler โ€“ The event handler.