diff --git a/onnxruntime/core/framework/graph_partitioner.cc b/onnxruntime/core/framework/graph_partitioner.cc index 367bd4c334..003bc060f0 100644 --- a/onnxruntime/core/framework/graph_partitioner.cc +++ b/onnxruntime/core/framework/graph_partitioner.cc @@ -48,10 +48,6 @@ KernelDefBuilder& BuildFusedKernelDef(KernelDefBuilder& builder, const onnxrunti .SetDomain(schema->domain()) .SinceVersion(schema->SinceVersion()) .Provider(node.GetExecutionProviderType()); - auto& inputs = node.InputDefs(); - for (auto input : inputs) { - builder.TypeConstraint(input->Name(), DataTypeImpl::TypeFromProto(*input->TypeAsProto())); - } return builder; }