tensorflow/models

View on GitHub

Showing 11,634 of 11,634 total issues

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

  def __init__(self,
Severity: Minor
Found in official/nlp/modeling/layers/cls_head.py - About 35 mins to fix

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

      def call(self,
    Severity: Minor
    Found in official/nlp/modeling/layers/multi_channel_attention.py - About 35 mins to fix

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

        def create_lm_model(self,

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

          def test_attention_scores(self,
        Severity: Minor
        Found in official/nlp/modeling/layers/relative_attention_test.py - About 35 mins to fix

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

            def bert_pack_inputs(inputs: Union[tf.RaggedTensor, List[tf.RaggedTensor]],
          Severity: Minor
          Found in official/nlp/modeling/layers/text_layers.py - About 35 mins to fix

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

              def __init__(
            Severity: Minor
            Found in official/nlp/modeling/layers/block_sparse_attention.py - About 35 mins to fix

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

                def create_layer(self,
              Severity: Minor
              Found in official/nlp/modeling/layers/mobile_bert_layers_test.py - About 35 mins to fix

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

                  def _init_token_ids(
                Severity: Minor
                Found in official/nlp/modeling/layers/text_layers.py - About 35 mins to fix

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

                    def __init__(self,
                  Severity: Minor
                  Found in official/nlp/modeling/layers/gaussian_process.py - About 35 mins to fix

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

                      def test_transformer_xl_block(
                    Severity: Minor
                    Found in official/nlp/modeling/layers/transformer_xl_test.py - About 35 mins to fix

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

                            def __call__(self, query, value, attention_mask, cache, decode_loop_step):
                      Severity: Minor
                      Found in official/nlp/modeling/layers/transformer_test.py - About 35 mins to fix

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

                          def serve(self, input_word_ids, input_mask, input_type_ids,
                        Severity: Minor
                        Found in official/nlp/serving/serving_modules.py - About 35 mins to fix

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

                            def test_attention_scores(self,
                          Severity: Minor
                          Found in official/nlp/modeling/layers/relative_attention_test.py - About 35 mins to fix

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

                              def call(self, query, value, key=None, attention_mask=None, **kwargs):  # pytype: disable=signature-mismatch  # overriding-parameter-count-checks
                            Severity: Minor
                            Found in official/nlp/modeling/layers/bigbird_attention.py - About 35 mins to fix

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

                                def _compute_attention(
                              Severity: Minor
                              Found in official/nlp/modeling/layers/multi_query_attention.py - About 35 mins to fix

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

                                  def _compute_attention(self,
                                Severity: Minor
                                Found in official/nlp/modeling/layers/per_dim_scale_attention.py - About 35 mins to fix

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

                                    def _compute_attention(self,
                                  Severity: Minor
                                  Found in official/nlp/modeling/layers/talking_heads_attention.py - About 35 mins to fix

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

                                    def write_example_to_file(examples,
                                    Severity: Minor
                                    Found in official/nlp/data/tagging_data_lib.py - About 35 mins 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

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

                                        def _create_a_and_b_segments(
                                        Severity: Minor
                                        Found in official/nlp/data/create_xlnet_pretraining_data.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language