mirror of
https://github.com/ml-explore/mlx.git
synced 2025-11-03 09:58:17 +08:00
Add a multi optimizer (#1916)
This commit is contained in:
committed by
GitHub
parent
a0737273d3
commit
9680f72cca
@@ -345,6 +345,7 @@ class TestVmap(mlx_tests.MLXTestCase):
|
||||
)
|
||||
|
||||
def test_vmap_inverse(self):
|
||||
mx.random.seed(42)
|
||||
a = mx.random.uniform(shape=(3, 4, 4))
|
||||
|
||||
cpu_inv = lambda x: mx.linalg.inv(x, stream=mx.cpu)
|
||||
|
||||
Reference in New Issue
Block a user