Skip to content

Commit f398b64

Browse files
committed
fix warning
1 parent 245f298 commit f398b64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

onnxruntime/core/providers/cpu/nn/layer_norm_impl.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ namespace onnxruntime {
1515

1616
namespace {
1717

18-
ORT_FORCEINLINE double* OnlyCreateBufferIfMLFloat16(double* p_output, int num_elems) {
18+
ORT_FORCEINLINE double* OnlyCreateBufferIfMLFloat16(double* p_output, int64_t num_elems) {
1919
return p_output;
2020
}
2121

22-
ORT_FORCEINLINE float* OnlyCreateBufferIfMLFloat16(float* p_output, int num_elems) {
22+
ORT_FORCEINLINE float* OnlyCreateBufferIfMLFloat16(float* p_output, int64_t num_elems) {
2323
return p_output;
2424
}
2525

26-
ORT_FORCEINLINE float* OnlyCreateBufferIfMLFloat16(MLFloat16* p_output, int num_elems) {
26+
ORT_FORCEINLINE float* OnlyCreateBufferIfMLFloat16(MLFloat16* p_output, int64_t num_elems) {
2727
return p_output == nullptr ? nullptr : new float[num_elems];
2828
}
2929

0 commit comments

Comments
 (0)