mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Simplifications for MLX C (#1396)
* simplifications for MLX C * use vectors instead of map * update examples
This commit is contained in:
@@ -1425,8 +1425,8 @@ array where(
|
||||
array nan_to_num(
|
||||
const array& a,
|
||||
float nan /* = 0.0f */,
|
||||
const std::optional<float>& posinf_ /* = std::nullopt */,
|
||||
const std::optional<float>& neginf_ /* = std::nullopt */,
|
||||
const std::optional<float> posinf_ /* = std::nullopt */,
|
||||
const std::optional<float> neginf_ /* = std::nullopt */,
|
||||
StreamOrDevice s /* = {} */) {
|
||||
Dtype dtype = a.dtype();
|
||||
if (!issubdtype(dtype, inexact)) {
|
||||
|
||||
Reference in New Issue
Block a user