@@ -109,7 +109,7 @@ The first [M, *M+N]* sub-tensor of weights is applied to the input
109109gate, the second, to new cell candidates, the third, to the forget
110110gate, and the last, to the output gate.
111111
112- .. note ::
112+ .. caution ::
113113 - Ensure that you keep the same
114114 order of sub-tensors for bias
115115 tensor. For more information
@@ -179,7 +179,7 @@ Dense part of calculations uses intermediate tensor for result, and
179179consequently output and previous output tensors might use the same
180180memory if it is acceptable to rewrite previous output data.
181181
182- .. note ::
182+ .. caution ::
183183 Ensure that you allocate memory
184184 for the rest of the tensors
185185 (including intermediate results
@@ -192,79 +192,8 @@ memory if it is acceptable to rewrite previous output data.
192192Function Configuration Structure
193193^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
194194
195- Definition
196- ''''''''''
197- .. code :: c
198-
199- typedef struct {
200- mli_rnn_mode mode;
201- mli_rnn_out_activation act;
202- mli_tensor *ir_tsr;
203- } mli_rnn_cell_cfg;
204- ..
205-
206- Parameters
207- ''''''''''
208-
209- .. table :: Function Configuration Parameters
210- :widths: 20,80
211-
212- +-----------------------+-----------------------+
213- | **Fields ** | **Description ** |
214- +=======================+=======================+
215- | ``mode `` | LSTM processing mode |
216- | | (enumeration) |
217- +-----------------------+-----------------------+
218- | ``act `` | LSTM output |
219- | | activation type |
220- | | (enumeration) |
221- +-----------------------+-----------------------+
222- | ``ir_tsr `` | Pointer to tensor for |
223- | | holding intermediate |
224- | | results. Tensor must |
225- | | contain valid data |
226- | | and capacity fields. |
227- | | Field is modified by |
228- | | kernels. |
229- +-----------------------+-----------------------+
230-
231- .. _mli_rnn_mode_val_desc :
232- .. table :: mli_rnn_mode Values Description
233- :widths: 20,80
234-
235- +-----------------------------------+-----------------------------------+
236- | **Value ** | **Field Description ** |
237- +===================================+===================================+
238- | ``RNN_ONE_TO_ONE `` | Process input tensor as a single |
239- | | input frame . |
240- +-----------------------------------+-----------------------------------+
241- | ``RNN_BATCH_TO_BATCH `` | Process input tensor as a |
242- | | sequence of frames to produce a |
243- | | sequence of outputs . |
244- +-----------------------------------+-----------------------------------+
245- | ``RNN_BATCH_TO_LAST `` | Process input tensor as a |
246- | | sequence of frames to produce |
247- | | single (last) outputs. |
248- +-----------------------------------+-----------------------------------+
249-
250-
251- .. _mli_rnn_out_activation_val_desc :
252- .. table :: mli_rnn_out_activation Values Description
253- :widths: 20,100
254-
255- +-----------------------------------+-----------------------------------+
256- | **Value ** | **Field Description ** |
257- +===================================+===================================+
258- | ``RNN_ACT_TANH `` | Hyperbolic tangent activation |
259- | | function. |
260- +-----------------------------------+-----------------------------------+
261- | ``RNN_ACT_SIGM `` | Logistic (sigmoid) activation |
262- | | function. |
263- +-----------------------------------+-----------------------------------+
264- | ``RNN_ACT_NONE `` | No activation. |
265- +-----------------------------------+-----------------------------------+
266-
267- \
195+ LSTM cell kernel shares configuration structure with Basic RNN cell.
196+ For more information see :ref: `fn_conf_brnn `.
268197
269198.. _api_lstm :
270199
@@ -276,8 +205,7 @@ Prototype
276205
277206.. code :: c
278207
279- mli_status mli_krn_lstm_cell_<data_type>
280- [_specialization](
208+ mli_status mli_krn_lstm_cell_<data_type>[_specialization](
281209 const mli_tensor *in,
282210 const mli_tensor *prev_out,
283211 const mli_tensor *weights,
@@ -369,7 +297,7 @@ function:
369297- The input tensor has the following restrictions:
370298
371299 - For ``RNN_ONE_TO_ONE `` mode, the total number of input and previous
372- output tensors (N+M) must be equal to the last dimension of the
300+ output tensors elements (N+M) must be equal to the last dimension of the
373301 weights tensor
374302
375303 - For ``RNN_BATCH_TO_BATCH `` and ``RNN_BATCH_TO_LAST `` modes, the first
0 commit comments