mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 17:31:16 +08:00
fix shapeless compile on ubuntu24 (#1775)
This commit is contained in:
parent
a4667da1eb
commit
a8666a757a
@ -37,7 +37,7 @@ class Synchronizer : public Primitive {
|
|||||||
// are currently under a function transformation and the retain_graph()
|
// are currently under a function transformation and the retain_graph()
|
||||||
// function which returns true if we are forced to retain the graph during
|
// function which returns true if we are forced to retain the graph during
|
||||||
// evaluation.
|
// evaluation.
|
||||||
std::vector<bool> detail::InTracing::trace_stack{};
|
std::vector<char> detail::InTracing::trace_stack{};
|
||||||
int detail::RetainGraph::tracing_counter{0};
|
int detail::RetainGraph::tracing_counter{0};
|
||||||
|
|
||||||
array eval_impl(std::vector<array> outputs, bool async) {
|
array eval_impl(std::vector<array> outputs, bool async) {
|
||||||
|
@ -36,7 +36,7 @@ struct InTracing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static std::vector<bool> trace_stack;
|
static std::vector<char> trace_stack;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RetainGraph {
|
struct RetainGraph {
|
||||||
|
Loading…
Reference in New Issue
Block a user