Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions test/allowlist_for_publicAPI.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
"torch.nn.quantizable.modules.activation": "torch.ao.nn.quantizable.modules.activation",
"torch.nn.quantizable.modules.rnn": "torch.ao.nn.quantizable.modules.rnn"
},
"torch.ao.quantization.fuse_modules": [
"List",
"Optional",
"fuse_conv_bn",
"fuse_conv_bn_relu",
"get_fuser_method",
"type_before_parametrizations"
],
"torch.ao.quantization.fuser_method_mappings": [
"Callable",
"Dict",
Expand Down
6 changes: 6 additions & 0 deletions torch/ao/quantization/fuse_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

from typing import List, Optional

__all__ = [
"fuse_known_modules",
"fuse_modules",
"fuse_modules_qat",
]

# Generalization of getattr
def _get_module(model, submodule_key):
tokens = submodule_key.split('.')
Expand Down