mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
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:
parent
549cbc7e69
commit
20b5a75cfa
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue