Skip to content

Commit 750174a

Browse files
cgufbfacebook-github-bot
authored andcommitted
[FX] Fix type of argument min_acc_module_size
Summary: As title, otherwise the below error is thrown: ``` TypeError: '>=' not supported between instances of 'int' and 'str' ``` Test Plan: easy Differential Revision: D35206473 fbshipit-source-id: f88bb0b0c314c3228d7dc3bbb7b2626692a77f58
1 parent 51e50a2 commit 750174a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torch/fx/passes/splitter_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def __init__(self):
3535
parser.add_argument(
3636
"--min_acc_module_size",
3737
default=1,
38+
type=int,
3839
help="Minimum size limit of an accelerator subgraph.",
3940
)
4041
parser.add_argument(

0 commit comments

Comments
 (0)