sc2bench.analysis

Functions

analyze_model_size(model[, encoder_paths, ...])

Approximates numbers of bits used for parameters of the whole model, encoder, and the rest of the model.

check_if_analyzable(module)

Checks if a module is an instance of AnalyzableModule.

get_analyzer(cls_name, **kwargs)

Gets an analyzer module.

register_analysis_class(cls)

Registers an analyzer class.

Classes

AnalyzableModule([analyzer_configs])

A base module to analyze and summarize the wrapped modules and intermediate representations.

BaseAnalyzer()

A base analyzer to analyze and summarize the wrapped modules and intermediate representations.

FileSizeAccumulator([unit])

An accumulator to store pre-computed file size in the designated unit.

FileSizeAnalyzer([unit])

An analyzer to measure file size of compressed object in the designated unit.