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

Commit 4e172ee

Browse files
Lukasz Kaisercopybara-github
authored andcommitted
Tell autograph to not convert data loaders, do not force gym versions to improve downstream imports.
PiperOrigin-RevId: 316699386
1 parent b66e054 commit 4e172ee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
'gin-config',
5151
'google-api-python-client',
5252
'gunicorn',
53-
'gym==0.14.0',
53+
'gym',
5454
'h5py',
5555
'kfac',
5656
'mesh-tensorflow',

tensor2tensor/data_generators/problem.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ def set_task_id(self, new_task_id):
399399
# END SUBCLASS INTERFACE
400400
# ============================================================================
401401

402+
@tf.autograph.experimental.do_not_convert()
402403
def preprocess(self, dataset, mode, hparams, interleave=True):
403404
"""Runtime preprocessing on the whole dataset.
404405
@@ -587,6 +588,7 @@ def maybe_reverse_and_copy(self, example):
587588
self.maybe_copy_features(example)
588589
return example
589590

591+
@tf.autograph.experimental.do_not_convert()
590592
def dataset(self,
591593
mode,
592594
data_dir=None,

0 commit comments

Comments
 (0)