CpuMath Enhancement: Add Debug.Assert to check matching lengths of arguments to SSE/AVX intrinsics #828
Labels
P2
Priority of the issue for triage purpose: Needs to be fixed at some point.
up-for-grabs
A good issue to fix if you are trying to contribute to the project
Style changes needed to solve part of #823
Details
src\Microsoft.ML.CpuMath\SseIntrinsics.cs
, it may make sense to add someDebug.Asserts
to check thesrc
anddst
Lengths match. However, these are internal functions that are only called from functions that guarantee the arguments are checked, so it might not be a blocking issue. It just may be some nice documentation on the expectations of these methods. And in case they get new callsites in the future.The text was updated successfully, but these errors were encountered: