Skip to content

Commit

Permalink
fix more dtype issue
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed May 18, 2021
1 parent 4189a22 commit 0784e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tvm/topi/transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,11 @@ inline te::Tensor dynamic_strided_slice(const te::Tensor& x, const te::Tensor& b
[&](const Array<tvm::tir::Var>& indices) {
Array<PrimExpr> real_indices;
// dynamic slicing
for (int64_t i = 0; i < num_dynamic_axes; ++i) {
for (int32_t i = 0; i < num_dynamic_axes; ++i) {
real_indices.push_back(indices[i] * strides(i) + tvm::min(begin(i), x->shape[i] - 1));
}
// keep input dim
for (int64_t i = num_dynamic_axes; i < src_tensor_dim; ++i) {
for (int32_t i = num_dynamic_axes; i < src_tensor_dim; ++i) {
real_indices.push_back(indices[i]);
}
return x(real_indices);
Expand Down

0 comments on commit 0784e59

Please sign in to comment.