Skip to content

Commit

Permalink
bug fix end param init
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed May 27, 2021
1 parent a5611c9 commit f69ef40
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 @@ -758,10 +758,10 @@ inline Tensor strided_slice(const Tensor& x, const Array<Integer>& begin, const
Array<Integer> strides_full(strides);

const IntImm one = IntImm(DataType::Int(64), 1);
const IntImm zero = IntImm(DataType::Int(64), 1);
const IntImm zero = IntImm(DataType::Int(64), 0);
const IntImm max_range = IntImm(DataType::Int(64), std::numeric_limits<int64_t>::max());

for (size_t i = strides_full.size(); i < src_tensor_dim; ++i) {
for (size_t i = strides.size(); i < src_tensor_dim; ++i) {
strides_full.push_back(one);
}
for (size_t i = begin.size(); i < src_tensor_dim; ++i) {
Expand Down

0 comments on commit f69ef40

Please sign in to comment.