official/nlp/data/pretrain_dynamic_dataloader_test.py
Function test_distribution_strategy
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def test_distribution_strategy(self, distribution_strategy):
max_seq_length = 128
batch_size = 8
input_path = os.path.join(self.get_temp_dir(), 'train.tf_record')
_create_fake_dataset(
Function _create_fake_dataset
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _create_fake_dataset(output_path, seq_length, num_masked_tokens,