This is required for PyTorch which runs into an issue with narrowing types. Requires an explicit cast. [ROCm/hip commit: 4ddb81424f]
4ddb81424f