Closed saddam213 closed 11 months ago
Latest OnnxRuntime includes System.Numerics.TensorPrimitives which has some Span based Tensor math operations
OnnxRuntime
System.Numerics.TensorPrimitives
Span
This PR will aim to move all possible CPU tensor math to use these new functions, mainly TensorHelper, Scheduler and Diffuser classes
TensorHelper
Scheduler
Diffuser
After TensorHelper update gained about 5-10% performance
LCM 6 Steps: 1280ms -> 880ms avg 100 images
LCM 6 Steps: 1280ms -> 880ms
Latest
OnnxRuntime
includesSystem.Numerics.TensorPrimitives
which has someSpan
based Tensor math operationsThis PR will aim to move all possible CPU tensor math to use these new functions, mainly
TensorHelper
,Scheduler
andDiffuser
classes