tensorflow/models

View on GitHub
official/nlp/modeling/layers/transformer_scaffold_test.py

Summary

Maintainability
B
5 hrs
Test Coverage

File transformer_scaffold_test.py has 340 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2024 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Severity: Minor
Found in official/nlp/modeling/layers/transformer_scaffold_test.py - About 4 hrs to fix

    Function test_layer_with_feedforward_cls_restoration_from_config has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def test_layer_with_feedforward_cls_restoration_from_config(self):
        sequence_length = 21
        width = 80
    
        call_list = []
    Severity: Minor
    Found in official/nlp/modeling/layers/transformer_scaffold_test.py - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status