MCPcopy Create free account
hub / github.com/Tencent/TurboTransformers / BindConfig

Function BindConfig

turbo_transformers/python/pybind.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static void BindConfig(py::module &m) {
55 py::enum_<core::BlasProvider>(m, "BlasProvider")
56 .value("MKL", core::BlasProvider::MKL)
57 .value("OpenBlas", core::BlasProvider::OpenBlas);
58
59 m.def("is_compiled_with_cuda", &core::IsCompiledWithCUDA)
60 .def("get_blas_provider", &core::GetBlasProvider);
61}
62
63PYBIND11_MODULE(turbo_transformers_cxx, m) {
64 char *argv[] = {strdup("turbo_transformers_cxx"), nullptr};

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected