mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-19 15:41:13 +08:00

* Add unary/binary/ternay/slice/concat internal GPU ops * add pad internal op * formatting + no_cpu fix
22 lines
375 B
C++
22 lines
375 B
C++
// Copyright © 2024 Apple Inc.
|
|
|
|
#pragma once
|
|
|
|
#include "mlx/array.h"
|
|
|
|
namespace mlx::core {
|
|
|
|
void ternary_op_gpu(
|
|
const std::vector<array>& inputs,
|
|
array& out,
|
|
const std::string op,
|
|
const Stream& s);
|
|
|
|
void ternary_op_gpu_inplace(
|
|
const std::vector<array>& inputs,
|
|
array& out,
|
|
const std::string op,
|
|
const Stream& s);
|
|
|
|
} // namespace mlx::core
|