Skip to content

Commit

Permalink
add static_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
xadupre committed Nov 22, 2023
1 parent 26566fd commit 970ace4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void CustomGemmKernel::Compute(OrtKernelContext* context) {
std::vector<int64_t> dimensions{shape_A[0], shape_B[1]};
Ort::UnownedValue Y = ctx.GetOutput(0, dimensions);
float* out = Y.GetTensorMutableData<float>();
size_t end = dimensions[0] * dimensions[1];
size_t end = static_cast<int64_t>(dimensions[0] * dimensions[1]);
for (size_t i = static_cast<size_t>(0); i < end; ++i) {
out[i] = static_cast<float>(i);
}
Expand Down

0 comments on commit 970ace4

Please sign in to comment.