Skip to content

Commit

Permalink
fix misplaced type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Sep 6, 2020
1 parent 755c49d commit e527581
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions onnxoptimizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
get_available_passes = C.get_available_passes


# type: (ModelProto, Optional[Sequence[Text]], bool) -> ModelProto
def optimize(model, passes=None, fixed_point=False):
def optimize(model, passes=None, fixed_point=False): # type: (ModelProto, Optional[Sequence[Text]], bool) -> ModelProto
if passes is None:
passes = ['eliminate_nop_transpose',
'eliminate_nop_pad',
Expand Down

0 comments on commit e527581

Please sign in to comment.