MCPcopy Create free account
hub / github.com/apple/coremltools / vectorize

Function vectorize

deps/pybind11/include/pybind11/numpy.h:2096–2098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2094// Vanilla pointer vectorizer:
2095template <typename Return, typename... Args>
2096detail::vectorize_helper<Return (*)(Args...), Return, Args...> vectorize(Return (*f)(Args...)) {
2097 return detail::vectorize_helper<Return (*)(Args...), Return, Args...>(f);
2098}
2099
2100// lambda vectorizer:
2101template <typename Func, detail::enable_if_t<detail::is_lambda<Func>::value, int> = 0>

Callers 2

TEST_SUBMODULEFunction · 0.50
TEST_SUBMODULEFunction · 0.50

Calls 1

vectorize_extractorFunction · 0.85

Tested by 2

TEST_SUBMODULEFunction · 0.40
TEST_SUBMODULEFunction · 0.40