You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @brief Model definition for the 1D Convolution block applied before the RNN
9
14
* @brief sub-layers : batchnorm1d -> conv1d_lr
10
15
* @param[out] output_signal pointer to the final output signal, minimum size = out_time * in_channels. out_time has to be calculated based on the reduction from all the conv and pool layers
11
16
* @param[in] input_signal pointer to the input signal. size = in_time * in_channels
12
17
* @param[in] in_time number of time steps in the input_signal
13
18
* @param[in] in_channels number of input channels
14
-
* @param[in] mean pointer to the mean for the batch normalization, size = in_channels
15
-
* @param[in] var pointer to the variance for the batch normalization, size = in_channels
16
-
* @param[in] affine whether the affine operations are applied
17
-
* @param[in] gamma pointer to the scaling factors for the post-norm affine operation, size = in_channels
18
-
* @param[in] beta pointer to the offsets for the post-norm affine operation, size = in_channels
19
+
* @param[in] mean pointer to the mean for the batch normalization, size = in_channels. Pass NULL/0 for affine_config = 2
20
+
* @param[in] var pointer to the variance for the batch normalization, size = in_channels. Pass NULL/0 for affine_config = 2
21
+
* @param[in] affine_config whether the affine operations are applied
22
+
* if affine_config = 0, then only mean and var are used
23
+
* if affine_config = 1, then mean, var, gamma and beta are used for the final computation.
24
+
* if affine_config = 2, then only the gamma and beta are used. gamma = original_gamma/sqrt(var), beta = original_beta - gamma * mean/sqrt(var)
25
+
* Note: Use affine_config = 2 for faster calculations. The new gamma and beta would need to be pre-computed, stored and passed
26
+
* @param[in] gamma pointer to the scaling factors for the post-norm affine operation, size = in_channels. Pass NULL/0 for affine_config = 0
27
+
* @param[in] beta pointer to the offsets for the post-norm affine operation, size = in_channels. Pass NULL/0 for affine_config = 0
19
28
* @param[in] in_place in-place computation check for the batchnorm. Storage efficient
20
29
* @param[in] cnn_hidden hidden state/out_channels dimensions for the low-rank CNN. The final channel size of this block
21
30
* @param[in] cnn_padding padding for the low-rank CNN layer. Note: applied to both sides of the input
0 commit comments