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>
22 lines
457 B
C++
22 lines
457 B
C++
// Copyright © 2024 Apple Inc.
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <tuple>
|
|
#include <vector>
|
|
|
|
#include "mlx/array.h"
|
|
#include "mlx/utils.h"
|
|
|
|
namespace mlx::core {
|
|
|
|
std::pair<std::vector<std::vector<int>>, std::string> einsum_path(
|
|
const std::string& subscripts,
|
|
const std::vector<array>& operands);
|
|
|
|
array einsum(
|
|
const std::string& subscripts,
|
|
const std::vector<array>& operands,
|
|
StreamOrDevice s = {});
|
|
|
|
} // namespace mlx::core
|