-
Notifications
You must be signed in to change notification settings - Fork 1.9k
CpuMath Enhancement: Fix naming of non-constant privates in perf tests for hardware intrinsics #829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey, @briancylui! Just taking a look at this issue and it looks like those variables are
|
Hey, @jwood803! Thanks for your inquiry. You are right in that the |
Protected variables shouldn't have For example I see:
in that file. Might be worth just scanning files that define private fields and make sure the align with the naming conventions. |
Thanks, @safern! I'll clean that and any other private fields I see in the file. 😄 |
And if you could scan other files related to CpuMath that would be awesome 😄 Thanks for helping doing this! |
I'll be glad to! 😄 Thanks for the help on this! |
@safern, I think the one you pointed out was the only instance that needed updating. However, I did see some
Should those be updated as well? |
According to our corefx coding guidelines const fields should use PascalCasing. Note entry No.12: https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md |
Apologies, @safern, but just to confirm...this line |
Correct. cc: @eerhardt just in case ML prefers all capital. I couldn't find a doc here, so I guess we're just following corefx's guidelines? |
I would name it using full words, not abbreviations. |
@eerhardt: Yes, |
Style changes needed to solve part of #823
Details
test\Microsoft.ML.CpuMath.PerformanceTests\PerformanceTests.cs
, regarding the lineprivate float[] src, dst, original, src1, src2;
, all these non-constant privates should be prefixed with_
but it can be updated in the future PR.The text was updated successfully, but these errors were encountered: