Skip to content

Commit

Permalink
Fix a PoliCheck finding in _hierarchical_ortmodule.py(microsoft#13462)
Browse files Browse the repository at this point in the history
  • Loading branch information
centwang authored Oct 26, 2022
1 parent 490e4dd commit 805ec45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def record_args(module, args):
# those nn.Module's with their recorded inputs.
# NOTE that if a module is not called from forward(), it will fail to be captured by this hook.
def recursive_hook(module):
# We cannot skip module in whitelist because it's possible that a module is called multiple times
# We cannot skip module in allowlist because it's possible that a module is called multiple times
# so that we still need to know the number of different input sets and use _IteratedORTModule to handle it.
handle_pool.append(module.register_forward_pre_hook(record_args))
for _, sub_module in module._modules.items():
Expand Down

0 comments on commit 805ec45

Please sign in to comment.