Unverified Commit 943f1e0a authored by Jennifer Zhou's avatar Jennifer Zhou Committed by GitHub
Browse files

Fix an int conversion error (#1325)



fix an int conversion error
Signed-off-by: default avatarJennifer Zhou <jennifer@jezh.me>
parent 237b4930
...@@ -264,8 +264,8 @@ Error_Type DActLuFFI(cudaStream_t stream, Buffer_Type input_buf, Buffer_Type act ...@@ -264,8 +264,8 @@ Error_Type DActLuFFI(cudaStream_t stream, Buffer_Type input_buf, Buffer_Type act
auto *output = output_buf->untyped_data(); auto *output = output_buf->untyped_data();
auto act_input_dims = act_input_buf.dimensions(); auto act_input_dims = act_input_buf.dimensions();
auto m = product(act_input_dims, 0, act_input_dims.size() - 2); auto m = static_cast<size_t>(product(act_input_dims, 0, act_input_dims.size() - 2));
auto n = act_input_dims.back(); auto n = static_cast<size_t>(act_input_dims.back());
auto act_len = act_input_dims.end()[-2]; auto act_len = act_input_dims.end()[-2];
auto input_shape = std::vector<size_t>{m, n}; auto input_shape = std::vector<size_t>{m, n};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment