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
This commit is contained in:
Pavel Grunt 2023-02-02 23:08:33 +01:00 committed by GitHub
parent 549cbc7e69
commit 20b5a75cfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<int64_t>())
.TypeConstraint("T2", DataTypeImpl::GetTensorType<int64_t>())
#if !defined(DISABLE_SPARSE_TENSORS)
.TypeConstraint("T", DataTypeImpl::GetSparseTensorType<int64_t>());
.TypeConstraint("T", DataTypeImpl::GetSparseTensorType<int64_t>())
#endif
.TypeConstraint("T1", DataTypeImpl::GetTensorType<int64_t>())
.TypeConstraint("T2", DataTypeImpl::GetTensorType<int64_t>());
return def;
}
};