mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
NumberOfElements for shapeless compile and vmap fixes (#802)
This commit is contained in:
committed by
GitHub
parent
29d0c10ee5
commit
76c919b4ec
@@ -74,7 +74,7 @@ bool allows_shapeless(const Primitive& p) {
|
||||
is_noop(p) || is_reduction(p) || typeid(p) == typeid(Softmax) ||
|
||||
typeid(p) == typeid(Sort) || typeid(p) == typeid(ArgSort) ||
|
||||
typeid(p) == typeid(ArgPartition) || typeid(p) == typeid(Partition) ||
|
||||
typeid(p) == typeid(Select);
|
||||
typeid(p) == typeid(Select) || typeid(p) == typeid(NumberOfElements);
|
||||
}
|
||||
|
||||
Compiled::Compiled(
|
||||
|
||||
Reference in New Issue
Block a user