From 20b5a75cfa552a6280dd391b83ec81f48998e36e Mon Sep 17 00:00:00 2001 From: Pavel Grunt Date: Thu, 2 Feb 2023 23:08:33 +0100 Subject: [PATCH] Add missing semicolon (#14143) Fix compilation issue when DISABLE_SPARSE_TENSORS is defined ### Description There is missing semicolon when DISABLE_SPARSE_TENSORS is defined ### Motivation and Context Avoid a compilation failure when cmake option `onnxruntime_DISABLE_SPARSE_TENSORS` is turned on --- onnxruntime/test/framework/sparse_kernels_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/onnxruntime/test/framework/sparse_kernels_test.cc b/onnxruntime/test/framework/sparse_kernels_test.cc index 3b38843257..854a755e6b 100644 --- a/onnxruntime/test/framework/sparse_kernels_test.cc +++ b/onnxruntime/test/framework/sparse_kernels_test.cc @@ -149,11 +149,11 @@ This operator constructs a sparse tensor from three tensors that provide a COO static KernelDefBuilder KernelDef() { KernelDefBuilder def; def.SetName(SparseFromCOO::OpName()) - .TypeConstraint("T1", DataTypeImpl::GetTensorType()) - .TypeConstraint("T2", DataTypeImpl::GetTensorType()) #if !defined(DISABLE_SPARSE_TENSORS) - .TypeConstraint("T", DataTypeImpl::GetSparseTensorType()); + .TypeConstraint("T", DataTypeImpl::GetSparseTensorType()) #endif + .TypeConstraint("T1", DataTypeImpl::GetTensorType()) + .TypeConstraint("T2", DataTypeImpl::GetTensorType()); return def; } };