Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit a9da963

Browse files
T2T Teamcopybara-github
authored andcommitted
Automated refactoring to make code Python 3 compatible.
PiperOrigin-RevId: 309980818
1 parent 72b8f7b commit a9da963

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tensor2tensor/insights/transformer_model.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
"""A QueryProcessor using the Transformer framework."""
1717

18+
from __future__ import absolute_import
19+
from __future__ import division
20+
from __future__ import print_function
21+
1822
from collections import deque
1923

2024
import glob
@@ -24,6 +28,7 @@
2428

2529
import numpy as np
2630

31+
from six.moves import range
2732
from tensor2tensor.bin import t2t_trainer
2833
from tensor2tensor.data_generators import text_encoder
2934
from tensor2tensor.insights import graph

0 commit comments

Comments
 (0)