tensorflow/models

View on GitHub
official/nlp/data/pretrain_dynamic_dataloader_test.py

Summary

Maintainability
A
1 hr
Test Coverage

Function test_distribution_strategy has 26 lines of code (exceeds 25 allowed). Consider refactoring.
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(
Severity: Minor
Found in official/nlp/data/pretrain_dynamic_dataloader_test.py - About 1 hr to fix

    Function _create_fake_dataset has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def _create_fake_dataset(output_path, seq_length, num_masked_tokens,
    Severity: Minor
    Found in official/nlp/data/pretrain_dynamic_dataloader_test.py - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status