mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-19 19:00:47 +00:00
BuildFusedKernelDef uses N^2 algorithm verifying input constraints; session load time is huge for fused nodes (#804)
This optimization is required for WinML to prevent unit test time out.
This commit is contained in:
parent
d17ae5c093
commit
53038b33ed
1 changed files with 0 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue