mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
Resize_impl.cu: Change _Round to roundf (#7140)
This is to keep the change minimal, make it work exactly like what it worked before.
This commit is contained in:
parent
63d9d5afd3
commit
f365f1d967
1 changed files with 2 additions and 2 deletions
|
|
@ -20,11 +20,11 @@ __device__ int NearestPixel_ROUND_PREFER_FLOOR(float x_original, bool) {
|
|||
if (x_original == static_cast<int>(x_original) + 0.5f) {
|
||||
return static_cast<int>(_Floor(x_original));
|
||||
}
|
||||
return static_cast<int>(_Round(x_original));
|
||||
return static_cast<int>(roundf(x_original));
|
||||
}
|
||||
|
||||
__device__ int NearestPixel_ROUND_PREFER_CEIL(float x_original, bool) {
|
||||
return static_cast<int>(_Round(x_original));
|
||||
return static_cast<int>(roundf(x_original));
|
||||
}
|
||||
|
||||
__device__ int NearestPixel_FLOOR(float x_original, bool) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue