From b2ca84396e693ff573d250d566aab7739e581a18 Mon Sep 17 00:00:00 2001 From: mamingjie-China Date: Fri, 25 Oct 2019 11:31:05 +0800 Subject: [PATCH] update --- x2paddle/decoder/tf_decoder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x2paddle/decoder/tf_decoder.py b/x2paddle/decoder/tf_decoder.py index 0bbfc3e..9bf45b4 100644 --- a/x2paddle/decoder/tf_decoder.py +++ b/x2paddle/decoder/tf_decoder.py @@ -390,7 +390,7 @@ class TFDecoder(object): compare12 = (results[1] == results[2]) compare = compare01 & compare12 - index = numpy.argwhere(compare==False).flatten() + index = numpy.argwhere(compare == False).flatten() results[0][index] = -1 return results[0].tolist() @@ -421,6 +421,6 @@ class TFDecoder(object): return shape[0].tolist() compare = compare01 & compare12 - index = numpy.argwhere(compare==False).flatten() + index = numpy.argwhere(compare == False).flatten() shapes[0][index] = -1 return shapes[0].tolist() -- GitLab