Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Python/src/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ PYBIND11_MODULE(pydirectml, module)
py::arg("new_size"),
py::arg("new_strides"));

module.def("activation_soft_max", &dml::ActivationSoftmax, "Raise all elements to e, and divide all the elements in each batch by that batch's sum.",
module.def("activation_soft_max", [](dml::Expression input) {
return dml::ActivationSoftmax(input);
}, "Raise all elements to e, and divide all the elements in each batch by that batch's sum.",
py::arg("input"));

module.def("join", [](
Expand Down