Fix Python Packaging CI (Rocm) (#12477)

Fix Python Packaging CI

Co-authored-by: Ethan Tao <ettao@microsoft.com@orttrainingdev7.d32nl1ml4oruzj4qz3bqlggovf.px.internal.cloudapp.net>
This commit is contained in:
ytaous 2022-08-04 20:40:09 -07:00 committed by GitHub
parent 8d830adf24
commit b879dca51c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,10 +81,12 @@ miopenDataType_t MiopenTensor::GetDataType() {
ORT_THROW("miopen engine currently supports only single/half/int32/int8 precision data types.");
}
#if ROCM_VERSION >= 50000
template<>
miopenDataType_t MiopenTensor::GetDataType<double>() {
return miopenDouble;
}
#endif
template<>
miopenDataType_t MiopenTensor::GetDataType<float>() {