mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-01 21:04:41 +08:00
shapeless compile in docs and partially shapeless reshape (#1742)
This commit is contained in:
@@ -685,7 +685,8 @@ auto compile_shapeless_ok(const std::vector<array>& inputs) {
|
||||
TEST_CASE("test shapeless compile") {
|
||||
{
|
||||
auto cfun = compile(compile_shapeless_not_ok, /* shapeless */ true);
|
||||
CHECK_THROWS(cfun({array({1, 2, 3, 4})}));
|
||||
cfun({array({1, 2, 3, 4})});
|
||||
CHECK_THROWS(cfun({array({1, 2, 3, 4, 5})}));
|
||||
}
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user