ResourceUtilization¶
Object to configure resources to use when searching for a configuration for the optimized model (such as in mixed-precision, pruning, etc.):
- class model_compression_toolkit.core.ResourceUtilization(weights_memory=inf, activation_memory=inf, total_memory=inf, bops=inf)¶
Class to represent measurements of performance.
weights_memory: Memory of a model’s weights in bytes. activation_memory: Memory of a model’s activation in bytes. total_memory: The sum of model’s activation and weights memory in bytes. bops: The total bit-operations in the model.