neural_compressor.experimental.common.torch_utils
¶
This is an utility file for PyTorch distillation.
Module Contents¶
Functions¶
|
Record layers output. |
|
Get a hook for getting activation. |
- neural_compressor.experimental.common.torch_utils.record_output(output, name, output_process, student=False)¶
Record layers output.
It is a help function.
- neural_compressor.experimental.common.torch_utils.get_activation(name, output_process='', student=False)¶
Get a hook for getting activation.