We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a700a commit fb46008Copy full SHA for fb46008
pytensor/link/mlx/dispatch/core.py
@@ -274,6 +274,7 @@ def alloc(x, *shape):
274
"MLX compilation limitation: Alloc operations with dynamic shapes "
275
"cannot be used inside compiled functions. This is because MLX "
276
"compilation forbids evaluating arrays to extract shape values. "
277
+ # Just a note! TODO: remove this once we have a better solution
278
"\n\nWorkarounds:"
279
"\n1. Avoid using Alloc with dynamic shapes in compiled contexts"
280
"\n2. Use static shapes when possible"
0 commit comments