Skip to content

Commit fd3c14a

Browse files
committed
More cleanup
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
1 parent 4527f92 commit fd3c14a

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

onnxscript/irbuilder.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,8 @@ def add(f: values.OnnxFunction):
108108

109109
return {name: f.to_function_proto() for name, f in called_functions.items()}
110110

111-
def to_graph_proto(self, use_default_type: bool = True) -> onnx.GraphProto:
112-
"""Converts this instance into a `onnx.GraphProto`.
113-
114-
Args:
115-
use_default_type: Unused.
116-
117-
Returns:
118-
an instance of :class:`onnx.GraphProto`
119-
"""
120-
del use_default_type # currently not used
111+
def to_graph_proto(self) -> onnx.GraphProto:
112+
"""Converts this instance into a `onnx.GraphProto`."""
121113
return ir.to_proto(self.graph)
122114

123115
def to_function_proto(self) -> onnx.FunctionProto:

0 commit comments

Comments
 (0)