W3cubDocs

/PyTorch 2.9

get_observer_state_dict

class torch.ao.quantization.observer.get_observer_state_dict(mod) [source]

Returns the state dict corresponding to the observer stats. Traverse the model state_dict and extract out the stats.

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.ao.quantization.observer.get_observer_state_dict.html