We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecbe8fb + fbb25cd commit 1754be7Copy full SHA for 1754be7
dpctl/tensor/libtensor/include/utils/type_dispatch.hpp
@@ -162,7 +162,7 @@ class DispatchVectorBuilder
162
struct usm_ndarray_types
163
{
164
165
- int typenum_to_lookup_id(int typenum)
+ int typenum_to_lookup_id(int typenum) const
166
167
using typenum_t = dpctl::tensor::detail::typenum_t;
168
auto const &api = ::dpctl::detail::dpctl_capi::get();
@@ -232,7 +232,7 @@ struct usm_ndarray_types
232
}
233
234
private:
235
- void throw_unrecognized_typenum_error(int typenum)
+ void throw_unrecognized_typenum_error(int typenum) const
236
237
throw std::runtime_error("Unrecogized typenum " +
238
std::to_string(typenum) + " encountered.");
0 commit comments