Skip to content

Fix Python build for activation_soft_max function - #715

Open
An Long (aisk) wants to merge 1 commit into
microsoft:masterfrom
aisk:fix-python-build
Open

Fix Python build for activation_soft_max function#715
An Long (aisk) wants to merge 1 commit into
microsoft:masterfrom
aisk:fix-python-build

Conversation

@aisk

Copy link
Copy Markdown

There is a function overload for ActivationSoftmax, so the Python build will encounter this error:

    C:\Users\xxxxx\Source\DirectML\Python\src\module.cpp(557,12): error C2672: 'pybind11::module_::def': no matching overloaded function found [C:\Users\xxxxx\Source\DirectML\Python\build\temp.win-amd64-cpython-310\Release\pydirectml.vcxproj]
          C:\Users\xxxxx\Source\DirectML\Python\pybind11\include\pybind11\pybind11.h(1162,14):
          could be 'pybind11::module_ &pybind11::module_::def(const char *,Func &&,const Extra ...)'
              C:\Users\xxxxx\Source\DirectML\Python\src\module.cpp(557,12):
              'pybind11::module_ &pybind11::module_::def(const char *,Func &&,const Extra ...)': could not deduce template argument for 'Func'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant