21namespace py = pybind11;
29 py::enum_<NNFW_TRAIN_LOSS>(
m,
"loss", py::module_local())
35 py::enum_<NNFW_TRAIN_LOSS_REDUCTION>(
m,
"loss_reduction", py::module_local())
41 py::enum_<NNFW_TRAIN_OPTIMIZER>(
m,
"optimizer", py::module_local())
47 py::enum_<NNFW_TRAIN_NUM_OF_TRAINABLE_OPS_SPECIAL_VALUES>(
m,
"trainable_ops", py::module_local())
56 py::class_<nnfw_loss_info>(
m,
"lossinfo", py::module_local())
65 py::class_<nnfw_train_info>(
m,
"traininfo", py::module_local())
72 "Number of trainable operations");
@ NNFW_TRAIN_TRAINABLE_NONE
@ NNFW_TRAIN_TRAINABLE_ALL
@ NNFW_TRAIN_TRAINABLE_INCORRECT_STATE
void bind_nnfw_train_enums(py::module_ &m)
void bind_nnfw_train_info(py::module_ &m)
void bind_nnfw_loss_info(py::module_ &m)
@ NNFW_TRAIN_LOSS_REDUCTION_UNDEFINED
@ NNFW_TRAIN_LOSS_REDUCTION_SUM
@ NNFW_TRAIN_LOSS_REDUCTION_SUM_OVER_BATCH_SIZE
@ NNFW_TRAIN_OPTIMIZER_ADAM
@ NNFW_TRAIN_OPTIMIZER_SGD
@ NNFW_TRAIN_OPTIMIZER_UNDEFINED
@ NNFW_TRAIN_LOSS_MEAN_SQUARED_ERROR
@ NNFW_TRAIN_LOSS_UNDEFINED
@ NNFW_TRAIN_LOSS_CATEGORICAL_CROSSENTROPY
NNFW_TRAIN_LOSS_REDUCTION reduction_type
int32_t num_of_trainable_ops