Files
mlx/mlx/backend/common/slicing.h
Awni Hannun af1b725fda Fix a couple of slicing bugs (#1827)
* fix a few bugs

* fix conv grad

* speedup test

* comment
2025-02-05 19:50:08 -08:00

21 lines
353 B
C++

// Copyright © 2024 Apple Inc.
#pragma once
#include "mlx/array.h"
namespace mlx::core {
std::tuple<int64_t, Strides> prepare_slice(
const array& in,
const Shape& start_indices,
const Shape& strides);
void slice(
const array& in,
array& out,
const Shape& start_indices,
const Shape& strides);
} // namespace mlx::core