fix code: if y is True -> if y (#29184)

musl/disable_test_yolov3_temporarily
liym27 5 years ago committed by GitHub
parent 7e7b4b9e5d
commit e03440812a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -211,7 +211,7 @@ class NetWithDictPop(paddle.nn.Layer):
def forward(self, x, **kwargs):
x = paddle.to_tensor(x)
y = kwargs.pop('y', None)
if y is True:
if y:
y = paddle.to_tensor(x)
x += y

Loading…
Cancel
Save