Skip to content

Commit

Permalink
[quant][pt2e] Add documentation for pt2 export static quant
Browse files Browse the repository at this point in the history
Summary:
att

Test Plan:
visual inspection

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 46c2e8a23b1a6e6227d819d44d707aa23c897ea4
Pull Request resolved: #2504
  • Loading branch information
jerryzh168 committed Jul 14, 2023
1 parent 4e7dbfc commit 3121571
Show file tree
Hide file tree
Showing 2 changed files with 400 additions and 1 deletion.
2 changes: 1 addition & 1 deletion prototype_source/fx_graph_mode_ptq_static.rst
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ of the observers for activation and weight. ``QConfigMapping`` contains mapping
qconfig_mapping = (QConfigMapping()
.set_global(qconfig_opt) # qconfig_opt is an optional qconfig, either a valid qconfig or None
.set_object_type(torch.nn.Conv2d, qconfig_opt) # can be a callable...
.set_object_type("torch.nn.functional.add", qconfig_opt) # ...or a string of the class name
.set_object_type("reshape", qconfig_opt) # ...or a string of the method name
.set_module_name_regex("foo.*bar.*conv[0-9]+", qconfig_opt) # matched in order, first match takes precedence
.set_module_name("foo.bar", qconfig_opt)
.set_module_name_object_type_order()
Expand Down
Loading

0 comments on commit 3121571

Please sign in to comment.