mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-07 00:13:17 +00:00
[js/webgpu] fix Transpose with non-float tensor (#15819)
### Description fix Transpose with non-float tensor. only register float type for Transpose.
This commit is contained in:
parent
e139ae238b
commit
41a19ae1b5
1 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ ONNX_OPERATOR_VERSIONED_KERNEL_EX(
|
|||
1, 12,
|
||||
kJsExecutionProvider,
|
||||
(*KernelDefBuilder::Create())
|
||||
.TypeConstraint("T", DataTypeImpl::AllFixedSizeTensorTypes()),
|
||||
.TypeConstraint("T", DataTypeImpl::GetTensorType<float>()),
|
||||
Transpose);
|
||||
|
||||
ONNX_OPERATOR_KERNEL_EX(
|
||||
|
|
@ -21,7 +21,7 @@ ONNX_OPERATOR_KERNEL_EX(
|
|||
13,
|
||||
kJsExecutionProvider,
|
||||
(*KernelDefBuilder::Create())
|
||||
.TypeConstraint("T", DataTypeImpl::AllFixedSizeTensorTypes()),
|
||||
.TypeConstraint("T", DataTypeImpl::GetTensorType<float>()),
|
||||
Transpose);
|
||||
|
||||
} // namespace js
|
||||
|
|
|
|||
Loading…
Reference in a new issue