Skip to content

Commit 12f7934

Browse files
committed
Give a name to the prediction op
1 parent 1b5f880 commit 12f7934

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: aocr/model/model.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ def __init__(self,
202202
self.prediction = tf.cond(
203203
tf.equal(tf.shape(trans_output)[0], 1),
204204
lambda: trans_output[0],
205-
lambda: trans_output
205+
lambda: trans_output,
206+
name='prediction',
206207
)
207208

208209
if not self.forward_only: # train

0 commit comments

Comments
 (0)