获取观察者状态字典

class torch.ao.quantization.observer.get_observer_state_dict(mod)[源代码]

返回与观察器统计信息对应的状态字典。遍历模型状态字典,提取其中的统计信息。