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

Commit c3a59b4

Browse files
author
Huyen Nguyen
committed
add arguments num_shards to generate_data
1 parent 8c850c9 commit c3a59b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/data_generators/algorithmic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AlgorithmicIdentityBinary40(problem.Problem):
3636
def num_symbols(self):
3737
return 2
3838

39-
def generate_data(self, data_dir, tmp_dir, num_shards=100):
39+
def generate_data(self, data_dir, _, num_shards=100):
4040
utils.generate_dataset_and_shuffle(
4141
identity_generator(self.num_symbols, 40, 100000),
4242
self.training_filepaths(data_dir, num_shards, shuffled=True),

0 commit comments

Comments
 (0)