We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b3904b commit bfa96c8Copy full SHA for bfa96c8
prototype_source/fx_graph_mode_ptq_static.rst
@@ -18,7 +18,7 @@ tldr; The FX Graph Mode API looks like the following:
18
from torch.ao.quantization import QConfigMapping
19
float_model.eval()
20
qconfig = get_default_qconfig("fbgemm")
21
- qconfig_mapping = QConfigMapping.set_global(qconfig)
+ qconfig_mapping = QConfigMapping().set_global(qconfig)
22
def calibrate(model, data_loader):
23
model.eval()
24
with torch.no_grad():
0 commit comments