forked from huawei/mindspore2022
fix api bug about PReLU op.
This commit is contained in:
parent
10e384674f
commit
b3b59c30a6
|
|
@ -2701,13 +2701,12 @@ class PReLU(PrimitiveWithInfer):
|
|||
>>> weight = Tensor(np.array([0.1, 0.6, -0.3]), mindspore.float32)
|
||||
>>> net = Net()
|
||||
>>> result = net(input_x, weight)
|
||||
[[[-0.1 1. ]
|
||||
[ 0. 2. ]
|
||||
[0. 0. ]]
|
||||
|
||||
[[-0.2 -0.1 ]
|
||||
[2. -1.8000001]
|
||||
[0.6 0.6 ]]]
|
||||
[[[-0.1, 1.0],
|
||||
[0.0, 2.0],
|
||||
[0.0, 0.0]],
|
||||
[[-0.2, -0.1],
|
||||
[2.0, -1.8000001],
|
||||
[0.6, 0.6]]]
|
||||
"""
|
||||
|
||||
@prim_attr_register
|
||||
|
|
|
|||
Loading…
Reference in New Issue