Rate this Page

enable_log_stats_to_file#

torchao.prototype.quant_logger.enable_log_stats_to_file(filename)[source][source]#

Redefines quant_logger::log_tensor to append summary statistics to a CSV file.

The file is initialized with a header row. Each subsequent call to log_tensor appends a row with columns: tag, counter_val, fqn, op, max_abs, avg, std, extra.

Parameters:

filename – Path to the CSV file to write.