Skip to content

Commit fb46008

Browse files
cetagostinijessegrabowski
authored andcommitted
Comment
1 parent 13a700a commit fb46008

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytensor/link/mlx/dispatch/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ def alloc(x, *shape):
274274
"MLX compilation limitation: Alloc operations with dynamic shapes "
275275
"cannot be used inside compiled functions. This is because MLX "
276276
"compilation forbids evaluating arrays to extract shape values. "
277+
# Just a note! TODO: remove this once we have a better solution
277278
"\n\nWorkarounds:"
278279
"\n1. Avoid using Alloc with dynamic shapes in compiled contexts"
279280
"\n2. Use static shapes when possible"

0 commit comments

Comments
 (0)