aitune.torch.task.profiling.measuring_strategy
aitune.torch.task.profiling.measuring_strategy
Measuring strategies for profiling.
Module Contents
Classes
API
Abstract
Strategy how do the measurement and create a ProfilingResultEvent(s).
abstract
Do the measurement and create a ProfilingResultEvent(s).
Parameters:
batch_size
Batch size of the measurement.
model
Model to measure.
sample
Sample to measure.
**kwargs
Additional keyword arguments.
Returns: list[ProfilingResultEvent]
List of ProfilingResultEvent(s).
Bases: MeasuringStrategy
Strategy to measure execution time.
counter
Do the measurement and create a ProfilingResultEvent(s) for the model.