2
0

Fix explicit cast required

This is required for PyTorch which runs into an issue with narrowing types. Requires an explicit cast.

[ROCm/clr commit: 032ebd41ea]
Este cometimento está contido em:
Aaron Enye Shi
2018-07-20 16:34:15 -04:00
cometido por GitHub
ascendente a0bb8820c5
cometimento 1282ef2e0c
+1 -1
Ver ficheiro
@@ -123,7 +123,7 @@ THE SOFTWARE.
typename std::enable_if<
(rank > 1) && sizeof...(Us) == rank>::type* = nullptr>
__host__ __device__
HIP_vector_type(Us... xs) noexcept { data = Native_vec_{xs...}; }
HIP_vector_type(Us... xs) noexcept { data = Native_vec_{static_cast<T>(xs)...}; }
__host__ __device__
HIP_vector_type(const HIP_vector_type&) = default;
__host__ __device__