Skip to content
Snippets Groups Projects
Commit 1562648a authored by Charles Villard's avatar Charles Villard Committed by Maxence Naud
Browse files

edit: TensorImpl: gave up original approach to use class partial

specialization because it is better handled by compilers
parent 29181ce4
No related branches found
No related tags found
2 merge requests!75Update 0.5.1 -> 0.6.0,!40Fix template compilation and warnings
Pipeline #70803 passed
...@@ -23,21 +23,7 @@ namespace Aidge { ...@@ -23,21 +23,7 @@ namespace Aidge {
template <typename SRC_T, typename DST_T> template <typename SRC_T, typename DST_T>
std::enable_if_t< void thrust_copy(const SRC_T* srcData, DST_T* dstData, size_t size);
!(std::is_same<half_float::half, DST_T>::value
|| std::is_same<half_float::half, SRC_T>::value)>
thrust_copy(const SRC_T* srcData, DST_T* dstData, size_t size);
void
thrust_copy(const half_float::half* srcData, half_float::half* dstData, size_t size);
template <typename DST_T>
std::enable_if_t<!std::is_same<half_float::half, DST_T>::value>
thrust_copy(const half_float::half* srcData, DST_T* dstData, size_t size);
template <typename SRC_T>
std::enable_if_t<!std::is_same<half_float::half, SRC_T>::value>
thrust_copy(const SRC_T* srcData, half_float::half* dstData, size_t size);
/** /**
* @brief Abstract class for the TensorImpl_cuda class template. * @brief Abstract class for the TensorImpl_cuda class template.
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment