mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-20 09:33:16 +08:00
@@ -611,8 +611,8 @@ TEST_CASE("test categorical") {
|
||||
CHECK_THROWS(categorical(logits, -3));
|
||||
|
||||
// Invalid requested shapes
|
||||
CHECK_THROWS(categorical(logits, 1, std::vector<int>{1}));
|
||||
CHECK_THROWS(categorical(logits, 1, std::vector<int>{11}));
|
||||
CHECK_THROWS(categorical(logits, 1, Shape{1}));
|
||||
CHECK_THROWS(categorical(logits, 1, Shape{11}));
|
||||
CHECK_THROWS(categorical(logits, 1, {10, 1}));
|
||||
|
||||
CHECK_EQ(categorical(logits, -1).shape(), Shape{10});
|
||||
|
Reference in New Issue
Block a user