Skip to content

Commit 024da2a

Browse files
authored
unifying data types in the SLAHead (#13276)
1 parent 153de46 commit 024da2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppocr/modeling/heads/table_att_head.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def forward(self, inputs, targets=None):
368368
loc_preds = loc_preds[:, : max_len + 1]
369369
else:
370370
structure_ids = paddle.zeros(
371-
(batch_size, self.max_text_length + 1), dtype=paddle.int64
371+
(batch_size, self.max_text_length + 1), dtype="int32"
372372
)
373373
pre_chars = paddle.zeros(shape=[batch_size], dtype="int32")
374374
max_text_length = paddle.to_tensor(self.max_text_length)

0 commit comments

Comments
 (0)