We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 888baf0 commit 5cf76f6Copy full SHA for 5cf76f6
onnxruntime/core/providers/cuda/tensor/gather_elements.cc
@@ -175,6 +175,7 @@ Status GatherElements::ComputeInternal(OpKernelContext* context) const {
175
TensorShapeVector indices_shape_vec = indices_shape.AsShapeVector();
176
TensorShapeVector* p_indices_strides_vec = nullptr;
177
#ifdef ENABLE_STRIDED_TENSORS
178
+ TensorShapeVector indices_strides_vec;
179
if (!indices_tensor->IsContiguous()) {
180
indices_strides_vec = ToShapeVector(indices_tensor->Strides());
181
p_indices_strides_vec = &indices_strides_vec;
0 commit comments