Browse Source

!8528 fix Conv2dBnAct example typo error

From: @yuchaojie
Reviewed-by: @chenfei52,@kisnwang
Signed-off-by: @kisnwang
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
b66ec48842
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/nn/layer/combined.py

+ 1
- 1
mindspore/nn/layer/combined.py View File

@@ -77,7 +77,7 @@ class Conv2dBnAct(Cell):
Tensor of shape :math:`(N, C_{out}, H_{out}, W_{out})`.

Examples:
>>> net = nn.Conv2dBnAct(120, 240, 4, has_bn=True, activation='ReLU')
>>> net = nn.Conv2dBnAct(120, 240, 4, has_bn=True, activation='relu')
>>> input = Tensor(np.ones([1, 120, 1024, 640]), mindspore.float32)
>>> result = net(input)
>>> result.shape


Loading…
Cancel
Save