-
Notifications
You must be signed in to change notification settings - Fork 611
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
Normalize GPU - pImpl + Bessel's corrections #1981
Conversation
Add Bessel's correction for standard deviation. Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
CI MESSAGE: [1349891]: BUILD STARTED |
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
@@ -21,6 +21,7 @@ | |||
#include "dali/core/convert.h" | |||
#include "dali/core/format.h" | |||
#include "dali/core/small_vector.h" | |||
#include "dali/core/tensor_shape_print.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must re-check... I'm formatting tensor shape in some error messages and I think the error originated in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked - it is indeed necessary.
CI MESSAGE: [1349891]: BUILD PASSED |
* (typically reciprocal of standard deviation or 1/(max-min)). | ||
* The normalization follows the formula: | ||
* ``` | ||
* out[data_idx] = (in[data_idx] - base[param_idx]) * scale[param_idx] * global_scale + shift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can write how param_idx
is calculated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see it is described in L54. Still small info hear would help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I explained it in lines 51-57.
!build |
* ``` | ||
* Where `data_idx` is a position in the data tensor (in, out) and `param_idx` is a position | ||
* in the base and scale tensors (see below for details). The two additional constants, | ||
* `global_scale` and `shift` can be used to adjust the result to the ynamic range and resolution |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* `global_scale` and `shift` can be used to adjust the result to the ynamic range and resolution | |
* `global_scale` and `shift` can be used to adjust the result to the dynamic range and resolution |
CI MESSAGE: [1350221]: BUILD STARTED |
c9801aa
to
af66a83
Compare
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
CI MESSAGE: [1350287]: BUILD STARTED |
CI MESSAGE: [1350287]: BUILD FAILED |
CI MESSAGE: [1350287]: BUILD PASSED |
Why we need this PR?
Pick one, remove the rest
What happened in this PR?
Fill relevant points, put NA otherwise. Replace anything inside []
JIRA TASK: DALI-1267