Imported Functions called with an unknown dimension size. #2976
-
|
I can define a function and compile then call it with a variable number in the leading dimension. Running this, the first two functions return I'm now trying to export the function. This now requires requires specifying an input. This fails when I call it with my Is there away to call this function so I use a variable batch size? When I tried using This fails with the output |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Shapeless export doesn't allow the number of dimensions or the datatype to change. So if you change to and export with You can also export several functions in the same file with with mx.exporter("file.mlxfn", func) as exporter:
exporter(my_inputs)
exporter(my_other_inputs) |
Beta Was this translation helpful? Give feedback.
Shapeless export doesn't allow the number of dimensions or the datatype to change. So if you change
to
and export with
shapeless=Trueit should work (at least it works for me).You can also export several functions in the same file with