From d82828147402fb0808de59d8d553e49781730ec1 Mon Sep 17 00:00:00 2001 From: Qdriving <35327911+Qdriving@users.noreply.github.com> Date: Mon, 28 Sep 2020 15:00:31 +0800 Subject: [PATCH] Update model.py yapf check --- models/rank/dien/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/rank/dien/model.py b/models/rank/dien/model.py index 0a2d1c7f..74dc97fc 100755 --- a/models/rank/dien/model.py +++ b/models/rank/dien/model.py @@ -230,7 +230,7 @@ class Model(ModelBase): pad_value) seq_shape = fluid.layers.shape(pos_seq_pad) - if(seq_shape[1] < 2): + if seq_shape[1] < 2: aux_loss = 0 else: test_pos = fluid.layers.reduce_sum( -- GitLab