dist/include/ contains the MLX and MLX-C headers needed for CGo compilation. Without these, go-mlx cannot be used as a module dependency (headers not found in module cache). Libraries (dylib/metallib) are still gitignored — users build those locally via cmake. Co-Authored-By: Virgil <virgil@lethean.io>
21 lines
387 B
C++
21 lines
387 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 shared_buffer_slice(
|
|
const array& in,
|
|
const Strides& out_strides,
|
|
size_t data_offset,
|
|
size_t data_size,
|
|
array& out);
|
|
|
|
} // namespace mlx::core
|