Skip to content

Commit

Permalink
remove duplicate and add type: ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeleobas committed Dec 2, 2020
1 parent 309facb commit 1b52305
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion torch/_C/__init__.pyi.in
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ def _jit_pass_onnx_assign_output_shape(graph: Graph, tensors: List[Tensor], onnx
def _jit_pass_fixup_onnx_loop_node_inputs(n: Node) -> None: ...
def _jit_pass_onnx_remove_inplace_ops_for_onnx(graph: Graph) -> None: ...
def _jit_pass_remove_inplace_ops(graph: Graph) -> None: ...
def _jit_pass_constant_propagation(graph: Graph) -> None: ...
def _jit_pass_canonicalize_graph_fuser_ops(graph: Graph) -> None: ...
def _jit_pass_peephole(graph: Graph, addmm_fusion_enabled: _bool) -> None: ...
def _jit_pass_fuse_addmm(graph: Graph) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion torch/onnx/symbolic_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def _unbind_helper(g, self, dim, _outputs):
if _export_onnx_opset_version <= 9:
from torch.onnx.symbolic_opset9 import unbind
else:
from torch.onnx.symbolic_opset11 import unbind
from torch.onnx.symbolic_opset11 import unbind # type: ignore[no-redef]
return unbind(g, self, dim, _outputs)


Expand Down

0 comments on commit 1b52305

Please sign in to comment.