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
31 lines
532 B
C++
31 lines
532 B
C++
// Copyright © 2024 Apple Inc.
|
|
|
|
#pragma once
|
|
|
|
#include "mlx/array.h"
|
|
|
|
namespace mlx::core {
|
|
|
|
void slice_gpu(
|
|
const array& in,
|
|
array& out,
|
|
std::vector<int> start_indices,
|
|
std::vector<int> strides,
|
|
const Stream& s);
|
|
|
|
void concatenate_gpu(
|
|
const std::vector<array>& inputs,
|
|
array& out,
|
|
int axis,
|
|
const Stream& s);
|
|
|
|
void pad_gpu(
|
|
const array& in,
|
|
const array& val,
|
|
array& out,
|
|
std::vector<int> axes,
|
|
std::vector<int> low_pad_size,
|
|
const Stream& s);
|
|
|
|
} // namespace mlx::core
|