Fix cast of __half for HIP-clang (#1475)
此提交包含在:
1 父節點
4b413739a9
當前提交
56193a7828
2 file changed
+6
No files matched your search
@@ -223,6 +223,7 @@ THE SOFTWARE.
|
||||
Enable_if_t<
|
||||
std::is_floating_point<T>{} &&
|
||||
!std::is_same<T, double>{}>* = nullptr>
|
||||
__host__ __device__
|
||||
operator T() const { return data; }
|
||||
#endif
|
||||
__host__ __device__
|
||||
|
||||
Reference in new issue
封鎖使用者