mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 01:41:17 +08:00
fix function pointer (#1865)
This commit is contained in:
parent
7f2d1024f3
commit
9733e16496
@ -922,7 +922,7 @@ std::function<std::vector<array>(const std::vector<array>&)> compile(
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::function<std::vector<array>(const std::vector<array>&)> compile(
|
std::function<std::vector<array>(const std::vector<array>&)> compile(
|
||||||
std::vector<array>(fun)(const std::vector<array>&),
|
std::vector<array> (*fun)(const std::vector<array>&),
|
||||||
bool shapeless /* = false */) {
|
bool shapeless /* = false */) {
|
||||||
if (detail::skip_compile()) {
|
if (detail::skip_compile()) {
|
||||||
return fun;
|
return fun;
|
||||||
|
@ -14,7 +14,7 @@ std::function<std::vector<array>(const std::vector<array>&)> compile(
|
|||||||
bool shapeless = false);
|
bool shapeless = false);
|
||||||
|
|
||||||
std::function<std::vector<array>(const std::vector<array>&)> compile(
|
std::function<std::vector<array>(const std::vector<array>&)> compile(
|
||||||
std::vector<array>(fun)(const std::vector<array>&),
|
std::vector<array> (*fun)(const std::vector<array>&),
|
||||||
bool shapeless = false);
|
bool shapeless = false);
|
||||||
|
|
||||||
// Convert capture-less lambdas to function pointers.
|
// Convert capture-less lambdas to function pointers.
|
||||||
|
Loading…
Reference in New Issue
Block a user