Commit 0c396646 by liyinqiao

Fix the mistakes in manual and minor errors.

1. Fix the mistakes in manual.
2. Fix the minor errors in Normalize and ScaleAndShift functions.
parent 0223646a
......@@ -39,7 +39,7 @@ where a and b are the scalar and bias respectively, and \epsilon is the adjustme
>> dim - dimension alone which we generate the mean and variance
>> mean - the mean of the input
>> var - the variance of the input
>> a - the scalar
>> a - the scale
>> b - the bias
>> epsilon - a parameter
*/
......@@ -107,7 +107,7 @@ where a and b are the scalar and bias respectively, and \epsilon is the adjustme
>> dim - dimension alone which we generate the mean and variance
>> mean - the mean of the input
>> var - the variance of the input
>> a - the scalar
>> a - the scale
>> b - the bias
>> epsilon - a parameter
*/
......@@ -129,7 +129,7 @@ where a and b are the scalar and bias respectively, and \epsilon is the adjustme
>> dim - dimension alone which we generate the mean and variance
>> mean - the mean of the input
>> var - the variance of the input
>> a - the scalar
>> a - the scale
>> b - the bias
>> epsilon - a parameter
*/
......@@ -151,7 +151,7 @@ where a and b are the scalar and bias respectively, and \epsilon is the adjustme
>> dim - dimension alone which we generate the mean and variance
>> mean - the mean of the input
>> var - the variance of the input
>> a - the scalar
>> a - the scale
>> b - the bias
>> epsilon - a parameter
<< return - the result of normalized the data with normal distribution
......@@ -194,7 +194,7 @@ where a and b are the scalar and bias respectively, and \epsilon is the adjustme
>> dim - dimension alone which we generate the mean and variance
>> mean - the mean of the input
>> var - the variance of the input
>> a - the scalar
>> a - the scale
>> b - the bias
>> epsilon - a parameter
<< return - the result of normalized the data with normal distribution
......
......@@ -36,7 +36,7 @@ b = a * scale + shift
>> a - the input tensor
>> b - the output tensor
>> scale - the scaler factor
>> scale - the scale factor
>> shift - the shift factor
*/
void _ScaleAndShift(const XTensor * a, XTensor * b, DTYPE scale, DTYPE shift)
......@@ -113,7 +113,7 @@ keep the result in the input tensor a and return nothing
a = a * scale + shift
>> a - the input/output tensor
>> scale - the scaler factor
>> scale - the scale factor
>> shift - the shift factor
*/
void _ScaleAndShiftMe(XTensor * a, DTYPE scale, DTYPE shift)
......@@ -128,7 +128,7 @@ keep the result in the input tensor a and return nothing
a = a * scale + shift
>> a - the input/output tensor
>> scale - the scaler factor
>> scale - the scale factor
>> shift - the shift factor
*/
void ScaleAndShiftMe(XTensor& a, DTYPE scale, DTYPE shift)
......@@ -151,7 +151,7 @@ make a new tensor to keep the result and return it
b = a * scale + shift
>> a - the input tensor
>> scale - the scaler factor
>> scale - the scale factor
>> shift - the shift factor
<< return - the result of scaling and shifting all tensor entires
*/
......@@ -188,7 +188,7 @@ b = a * scale + shift
>> a - the input tensor
>> b - the output tensor
>> scale - the scaler factor
>> scale - the scale factor
>> shift - the shift factor
*/
void ScaleAndShift(const XTensor & a, XTensor & b, DTYPE scale, DTYPE shift)
......
......@@ -70,7 +70,7 @@ bool TestNormalize1()
for (int i = 0; i < varOrder; i++)
varUnitNum *= varDimSize[i];
/* a scalar tensor of size (2, 3) */
/* a scale tensor of size (2, 3) */
int aOrder = 2;
int * aDimSize = new int[aOrder];
aDimSize[0] = 2;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论