mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-30 02:54:13 +08:00
34 lines
637 B
C++
34 lines
637 B
C++
// Copyright © 2024 Apple Inc.
|
|
|
|
#pragma once
|
|
|
|
#include "mlx/array.h"
|
|
|
|
namespace mlx::core {
|
|
|
|
void binary_op_gpu(
|
|
const std::vector<array>& inputs,
|
|
std::vector<array>& outputs,
|
|
const char* op,
|
|
const Stream& s);
|
|
|
|
void binary_op_gpu(
|
|
const std::vector<array>& inputs,
|
|
array& out,
|
|
const char* op,
|
|
const Stream& s);
|
|
|
|
void binary_op_gpu_inplace(
|
|
const std::vector<array>& inputs,
|
|
std::vector<array>& outputs,
|
|
const char* op,
|
|
const Stream& s);
|
|
|
|
void binary_op_gpu_inplace(
|
|
const std::vector<array>& inputs,
|
|
array& out,
|
|
const char* op,
|
|
const Stream& s);
|
|
|
|
} // namespace mlx::core
|