dotnet / dotnet/machinelearning-samples
Should get better memory locality by arranging loops from most significant to least
Open
- Dominant language
- PowerShell
- Stars
- 4.7k
- Forks
- 2.7k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 1
Description
https://github.com/dotnet/machinelearning-samples/blob/fb06c72c512b3d007cabc0c01b3136701cb127d2/samples/csharp/end-to-end-apps/ObjectDetection-Onnx/OnnxObjectDetection/OnnxOutputParser.cs#L140
In ParseOutput(), by simply iterating by box, they y, then x, rather than x, then y, then box, memory accesses within the tensor should be more localized, which should work with caching better.
Contributor guide
Assessment
This issue has not been assessed yet.