You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone, I am trying to use onnxscript to convert a function into a script via the @script decorator. I have two questions:
Is there any ways to do subtraction between an input with the FLOAT type and the input with np.float32? If not, how do I convert from one to the other (I have looked up ALL the possible documentations from onnx but it's not much helpful). Right now I keep getting the error error: Unsupported left operand type for - ("FLOAT") [operator] with note: Right operand is of type "BFLOAT16 | BOOL | COMPLEX128 | COMPLEX64 | DOUBLE | <11 more items>"
Can I still use the normal operator (e.g. +, -, :, *) to do addition/subtraction/division/multiplication within the function that is supposed to be rewritten into .onnx model? The reason I ask is because it looks like onnxscript needs data to be of TensorType?
Hi everyone, I am trying to use onnxscript to convert a function into a script via the @script decorator. I have two questions:
FLOAT
type and the input withnp.float32
? If not, how do I convert from one to the other (I have looked up ALL the possible documentations from onnx but it's not much helpful). Right now I keep getting the errorerror: Unsupported left operand type for - ("FLOAT") [operator]
withnote: Right operand is of type "BFLOAT16 | BOOL | COMPLEX128 | COMPLEX64 | DOUBLE | <11 more items>"
+
,-
,:
,*
) to do addition/subtraction/division/multiplication within the function that is supposed to be rewritten into.onnx
model? The reason I ask is because it looks like onnxscript needs data to be ofTensorType
?Package versions. onnxscript = 0.1.0.dev2024112, onnx=1.17.0, onnxconverter-common=1.13.0, onnxruntime=1.20.0, skl2onnx=1.17.0
Example.
The text was updated successfully, but these errors were encountered: