Skip to content
Discussion options

You must be logged in to vote

Shapeless export doesn't allow the number of dimensions or the datatype to change. So if you change

input_buffer = mlx.core.ones((input_shape))

to

input_buffer = mlx.core.ones((1, input_shape))

and export with shapeless=True it should work (at least it works for me).

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)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cianciosa
Comment options

Answer selected by cianciosa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants