MLX
Loading...
Searching...
No Matches
compile.h
Go to the documentation of this file.
1// Copyright © 2023-2024 Apple Inc.
2
3#pragma once
4
5#include "mlx/array.h"
6
7namespace mlx::core {
8
10
12std::function<std::vector<array>(const std::vector<array>&)> compile(
13 const std::function<std::vector<array>(const std::vector<array>&)>& fun,
14 bool shapeless = false);
15
21
26
29} // namespace mlx::core
Definition allocator.h:7
void enable_compile()
Globally enable compilation.
void set_compile_mode(CompileMode mode)
Set the compiler mode to the given value.
void disable_compile()
Globally disable compilation.
std::function< std::vector< array >(const std::vector< array > &) compile)(const std::function< std::vector< array >(const std::vector< array > &)> &fun, bool shapeless=false)
Compile takes a function and returns a compiled function.
CompileMode
Definition compile.h:9