-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Hi,
I am using pybind11 in my work to send kokkos views from C++ to pytorch. The pybind11 version I am using is a part of the libtorch libraries downloaded from the pytorch website. I am using version 1.7.1-cuda version of libtorch.
I was able to successfully transfer kokkos views to pytorch when using libtorch V1.5.0-cuda with cuda 10.2.89. However, because we have to use updated cuda (< 11.0.3), I downloaded the newer version of libtorch. I am using cmake to build my simple application (which as of now is just a demo code)
I am getting the following error when building my code
/global/u1/n/namehta4/libtorch/include/pybind11/cast.h(2187): error: no instance of overloaded function **"pybind11::detail::collect_arguments" matches the argument list
argument types are: (const char *const)
detected during:
instantiation of "pybind11::object pybind11::detail::object_api<Derived>::operator()(Args &&...) const [with Derived=pybind11::detail::accessor<pybind11::detail::accessor_policies::str_attr>, policy=pybind11::return_value_policy::automatic_reference, Args=<const char *const &>]"
/global/u1/n/namehta4/libtorch/include/pybind11/pytypes.h(1596): here
instantiation of "__nv_bool pybind11::detail::object_api<Derived>::contains(T &&) const [with Derived=pybind11::handle, T=const char *const &]"
/global/u1/n/namehta4/libtorch/include/pybind11/detail/internals.h(271): here**
Could I please request for some assistance regarding this issue?
My code is located at the following githuib link:
[https://github.com/namehta4/KokkosToPytorch]
Thank you!
EDIT (@YannickJadoul): Format code.