Skip to content

Commit

Permalink
Add missing semicolon (#14143)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xerus authored Feb 2, 2023
1 parent 549cbc7 commit 20b5a75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onnxruntime/test/framework/sparse_kernels_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit 20b5a75

Please sign in to comment.