Skip to content

Commit 5cf76f6

Browse files
authored
Update gather_elements.cc
1 parent 888baf0 commit 5cf76f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

onnxruntime/core/providers/cuda/tensor/gather_elements.cc

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ Status GatherElements::ComputeInternal(OpKernelContext* context) const {
175175
TensorShapeVector indices_shape_vec = indices_shape.AsShapeVector();
176176
TensorShapeVector* p_indices_strides_vec = nullptr;
177177
#ifdef ENABLE_STRIDED_TENSORS
178+
TensorShapeVector indices_strides_vec;
178179
if (!indices_tensor->IsContiguous()) {
179180
indices_strides_vec = ToShapeVector(indices_tensor->Strides());
180181
p_indices_strides_vec = &indices_strides_vec;

0 commit comments

Comments
 (0)