Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tensor2tensor/utils/checkpoint_compatibility_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@


def get_data_dir():
pkg, _ = os.path.split(__file__)
pkg = os.path.abspath(__file__)
pkg, _ = os.path.split(pkg)
pkg, _ = os.path.split(pkg)
return os.path.join(pkg, "test_data")

Expand Down
3 changes: 2 additions & 1 deletion tensor2tensor/utils/hparams_lib_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class HparamsLibTest(tf.test.TestCase):

def testCreateHparamsFromJson(self):
# Get json_path
pkg, _ = os.path.split(__file__)
pkg = os.path.abspath(__file__)
pkg, _ = os.path.split(pkg)
pkg, _ = os.path.split(pkg)
json_path = os.path.join(
pkg, "test_data", "transformer_test_ckpt", "hparams.json")
Expand Down
3 changes: 2 additions & 1 deletion tensor2tensor/utils/trainer_lib_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def body(args, mb=model.body):

def testCreateHparams(self):
# Get json_path
pkg, _ = os.path.split(__file__)
pkg = os.path.abspath(__file__)
pkg, _ = os.path.split(pkg)
pkg, _ = os.path.split(pkg)
json_path = os.path.join(
pkg, "test_data", "transformer_test_ckpt", "hparams.json")
Expand Down