mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-01 12:49:44 +08:00
Update pre-commit hooks (#984)
This commit is contained in:
@@ -18,9 +18,7 @@ TEST_CASE("test simple custom vjp") {
|
||||
fn,
|
||||
[&](const std::vector<array>&,
|
||||
const std::vector<array>&,
|
||||
const std::vector<array>&) {
|
||||
return std::vector<array>{one, one};
|
||||
});
|
||||
const std::vector<array>&) { return std::vector<array>{one, one}; });
|
||||
|
||||
auto [z, g] = vjp(fn, {x, y}, {one, one});
|
||||
CHECK_EQ(z[0].item<float>(), 6.0f);
|
||||
|
Reference in New Issue
Block a user