diff --git a/onnxscript/irbuilder.py b/onnxscript/irbuilder.py index 7e86cda9c..673626d7b 100644 --- a/onnxscript/irbuilder.py +++ b/onnxscript/irbuilder.py @@ -361,6 +361,8 @@ def to_proto(f): if isinstance(f, onnx.FunctionProto): return f if isinstance(f, onnxscript.OnnxFunction): + # TODO(justinchuby): functions should be function protos + # Normalize the OnnxFunction instead? return f.to_function_proto() raise TypeError("Expected a value of type FunctionProto of OnnxFunction")