mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-04 04:07:22 +00:00
Fix the type constraints on CUDA If operator to exclude strings. (#2431)
This commit is contained in:
parent
8647201ac7
commit
3be554c2fb
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ ONNX_OPERATOR_VERSIONED_KERNEL_EX(If,
|
|||
KernelDefBuilder()
|
||||
.InputMemoryType<OrtMemTypeCPUInput>(0) // 'cond' needs to be on CPU
|
||||
.TypeConstraint("B", DataTypeImpl::GetTensorType<bool>())
|
||||
.TypeConstraint("V", DataTypeImpl::AllTensorTypes()),
|
||||
.TypeConstraint("V", DataTypeImpl::AllFixedSizeTensorTypes()),
|
||||
If);
|
||||
|
||||
// output shape rules requiring the output shapes of the 'THEN' and 'ELSE'
|
||||
|
|
@ -30,7 +30,7 @@ ONNX_OPERATOR_KERNEL_EX(If,
|
|||
KernelDefBuilder()
|
||||
.InputMemoryType<OrtMemTypeCPUInput>(0) // 'cond' needs to be on CPU
|
||||
.TypeConstraint("B", DataTypeImpl::GetTensorType<bool>())
|
||||
.TypeConstraint("V", DataTypeImpl::AllTensorTypes()),
|
||||
.TypeConstraint("V", DataTypeImpl::AllFixedSizeTensorTypes()),
|
||||
If);
|
||||
|
||||
Status If::Compute(OpKernelContext* ctx) const {
|
||||
|
|
|
|||
Loading…
Reference in a new issue