Skip to content

Commit

Permalink
TODO: Emit the subfunction in block if cond
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby committed Oct 26, 2023
1 parent 4d7ac4d commit 2ec39c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions onnxscript/irbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 2ec39c5

Please sign in to comment.