未验证 提交 e963a9aa 编写于 作者: M Matteo Salvarezza 提交者: GitHub

Fix shape in LSTM documentation (#3762)

* Fixed LSTM documentation
Signed-off-by: NMatteo Salvarezza <matteo.salvarezza@gmail.com>

* Regenerated docs
Signed-off-by: NMatteo Salvarezza <matteo.salvarezza@gmail.com>

* Manually removed unwanted doc change
Signed-off-by: NMatteo Salvarezza <matteo.salvarezza@gmail.com>
上级 767f7528
......@@ -19108,7 +19108,7 @@ This version of the operator has been available since version 14 of the default
<dt><tt>input_forget</tt> : int (default is 0)</dt>
<dd>Couple the input and forget gates if 1.</dd>
<dt><tt>layout</tt> : int (default is 0)</dt>
<dd>The shape format of inputs X, initial_h, initial_c and outputs Y, Y_h, Y_c. If 0, the following shapes are expected: X.shape = [seq_length, batch_size, input_size], Y.shape = [seq_length, num_directions, batch_size, hidden_size], initial_h.shape = Y_h.shape = initial_c.shape = Y_c.shape = [num_directions, batch_size, hidden_size]. If 1, the following shapes are expected: X.shape = [batch_size, seq_length, input_size], Y.shape = [batch_size, seq_length, num_directions, hidden_size], initial_h.shape = Y_h.shape = initial_c.shape = Y_c.shape = [num_directions, batch_size, hidden_size].</dd>
<dd>The shape format of inputs X, initial_h, initial_c and outputs Y, Y_h, Y_c. If 0, the following shapes are expected: X.shape = [seq_length, batch_size, input_size], Y.shape = [seq_length, num_directions, batch_size, hidden_size], initial_h.shape = Y_h.shape = initial_c.shape = Y_c.shape = [num_directions, batch_size, hidden_size]. If 1, the following shapes are expected: X.shape = [batch_size, seq_length, input_size], Y.shape = [batch_size, seq_length, num_directions, hidden_size], initial_h.shape = Y_h.shape = initial_c.shape = Y_c.shape = [batch_size, num_directions, hidden_size].</dd>
</dl>
#### Inputs (3 - 8)
......
......@@ -8734,7 +8734,7 @@ Other versions of this operator: <a href="Changelog.md#LSTM-1">1</a>, <a href="C
<dt><tt>input_forget</tt> : int (default is 0)</dt>
<dd>Couple the input and forget gates if 1.</dd>
<dt><tt>layout</tt> : int (default is 0)</dt>
<dd>The shape format of inputs X, initial_h, initial_c and outputs Y, Y_h, Y_c. If 0, the following shapes are expected: X.shape = [seq_length, batch_size, input_size], Y.shape = [seq_length, num_directions, batch_size, hidden_size], initial_h.shape = Y_h.shape = initial_c.shape = Y_c.shape = [num_directions, batch_size, hidden_size]. If 1, the following shapes are expected: X.shape = [batch_size, seq_length, input_size], Y.shape = [batch_size, seq_length, num_directions, hidden_size], initial_h.shape = Y_h.shape = initial_c.shape = Y_c.shape = [num_directions, batch_size, hidden_size].</dd>
<dd>The shape format of inputs X, initial_h, initial_c and outputs Y, Y_h, Y_c. If 0, the following shapes are expected: X.shape = [seq_length, batch_size, input_size], Y.shape = [seq_length, num_directions, batch_size, hidden_size], initial_h.shape = Y_h.shape = initial_c.shape = Y_c.shape = [num_directions, batch_size, hidden_size]. If 1, the following shapes are expected: X.shape = [batch_size, seq_length, input_size], Y.shape = [batch_size, seq_length, num_directions, hidden_size], initial_h.shape = Y_h.shape = initial_c.shape = Y_c.shape = [batch_size, num_directions, hidden_size].</dd>
</dl>
#### Inputs (3 - 8)
......
......@@ -536,7 +536,7 @@ ONNX_OPERATOR_SET_SCHEMA(
"X.shape = [batch_size, seq_length, input_size], "
"Y.shape = [batch_size, seq_length, num_directions, hidden_size], "
"initial_h.shape = Y_h.shape = initial_c.shape = Y_c.shape = "
"[num_directions, batch_size, hidden_size].",
"[batch_size, num_directions, hidden_size].",
AttributeProto::INT,
static_cast<int64_t>(0))
.Attr(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册