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]
このコミットが含まれているのは:
Aaron Enye Shi authored and GitHub committed 2018-07-20 16:34:15 -04:00
1 親 a0bb8820c5
コミット 1282ef2e0c
1ファイル変更
+1 -1
+1 -1
ファイルの表示
@@ -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__