/
vuron
/
adept
Обзор
Документация
Войти
/
vuron
/
adept
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
with_cpu
python/cpp_bindings/activations_py.cpp
15 строк
323 B
kolkir
Refactor python folder structure
01 мар 2025, 22:16
01 мар 2025, 22:16
ef25f05
Код
Авторство
О чём код?
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <adept/nn/activations.hpp> namespace py = pybind11; using namespace adept; void bind_activations(py::module& m) { m.def("relu", adept::relu); m.def("leaky_relu", adept::leaky_relu); m.def("sigmoid", adept::sigmoid); m.def("silu", adept::silu); }