From 2c96050336676aa01f3d59a920cf06094428609a Mon Sep 17 00:00:00 2001 From: Hariharan Seshadri Date: Tue, 13 Apr 2021 11:14:43 -0700 Subject: [PATCH] Fix SDL warning (#7331) --- onnxruntime/core/providers/cuda/tensor/split.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/onnxruntime/core/providers/cuda/tensor/split.cc b/onnxruntime/core/providers/cuda/tensor/split.cc index eff26e19e3..4b130be232 100644 --- a/onnxruntime/core/providers/cuda/tensor/split.cc +++ b/onnxruntime/core/providers/cuda/tensor/split.cc @@ -46,7 +46,6 @@ Status Split::ComputeInternal(OpKernelContext* ctx) const { const Tensor* split_tensor = ctx->Input(1); if (split_tensor != nullptr) { - const Tensor* split_tensor = ctx->Input(1); ORT_ENFORCE(split_tensor->Shape().NumDimensions() == 1, "An split tensor must be a vector tensor."); auto nDims = static_cast(split_tensor->Shape()[0]); const int64_t* data = split_tensor->template Data();