mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-14 09:07:12 +08:00
ExpandDims primitive (#1687)
* add squeeze primitive * simplify squeeze, use in gather * fix * fix * fix * fix * fix no cpu * use squeeze in matmul and friends * expand dims primitive * comment
This commit is contained in:
@@ -1835,6 +1835,9 @@ TEST_CASE("test broadcast") {
|
||||
}
|
||||
|
||||
TEST_CASE("test gather") {
|
||||
// Empty input, non-empty indices/slice
|
||||
CHECK_THROWS(gather(array({}), array({1}), 0, {1}));
|
||||
|
||||
// More indices than dimensions
|
||||
CHECK_THROWS(gather(array(0), array({1}), 0, {1}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user