Browse Source

!11547 fix bugs of op LSTM in API

From: @lihongkang1
Reviewed-by: @liangchenghui,@ljl0711
Signed-off-by: @liangchenghui
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
260af610b0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mindspore/nn/layer/lstm.py

+ 2
- 1
mindspore/nn/layer/lstm.py View File

@@ -93,7 +93,8 @@ class LSTM(Cell):
bidirectional (bool): Specifies whether it is a bidirectional LSTM. Default: False.

Inputs:
- **input** (Tensor) - Tensor of shape (seq_len, batch_size, `input_size`).
- **input** (Tensor) - Tensor of shape (seq_len, batch_size, `input_size`) or
(batch_size, seq_len, `input_size`).
- **hx** (tuple) - A tuple of two Tensors (h_0, c_0) both of data type mindspore.float32 or
mindspore.float16 and shape (num_directions * `num_layers`, batch_size, `hidden_size`).
Data type of `hx` must be the same as `input`.


Loading…
Cancel
Save