mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-20 09:33:16 +08:00
MinGW support (#1806)
* Changed /bin/bash to bash for generating compiling preamble * Fix wrt jit_compiler mingw like msvc wrt. WEXITSTATUS * Solved ambiguity wrt. bernoulli test shape * Disabled distributed/ring on Windows * Fixed jit_compiler command wrt. MinGW * Extended jit_compiler patch wrt. WEXITSTATUS to FreeBSD
This commit is contained in:

committed by
GitHub

parent
80c863b972
commit
2d8e667400
@@ -556,7 +556,7 @@ TEST_CASE("test random bernoulli") {
|
||||
|
||||
p = array({0.1, 0.2, 0.3});
|
||||
// Ask for the wrong shape => throws
|
||||
CHECK_THROWS_AS(random::bernoulli(p, {2}), std::invalid_argument);
|
||||
CHECK_THROWS_AS(random::bernoulli(p, Shape({2})), std::invalid_argument);
|
||||
|
||||
// Check wrong key type or shape
|
||||
auto key = array({0, 0}, {1, 2});
|
||||
|
Reference in New Issue
Block a user