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, num_units, forget_bias=1.0, weight_scale=1.0,
Severity: Minor
Found in research/lfads/lfads.py - About 35 mins to fix

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

    def normalize_image(image, original_minval, original_maxval, target_minval,
    Severity: Minor
    Found in research/attention_ocr/python/model_export_lib.py - About 35 mins to fix

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

      def convert_checkpoint(bert_config, output_path, v1_checkpoint,
      Severity: Minor
      Found in official/nlp/tools/tf2_albert_encoder_checkpoint_converter.py - About 35 mins to fix

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

        def generate_tflite(session,
        Severity: Minor
        Found in research/seq_flow_lite/utils/tflite_utils.py - About 35 mins to fix

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

            def __init__(self,
          Severity: Minor
          Found in research/seq_flow_lite/layers/qrnn_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 research/seq_flow_lite/layers/embedding_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 research/seq_flow_lite/layers/base_layers.py - About 35 mins to fix

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

                def _run_precision_recall_analysis(
                Severity: Minor
                Found in official/nlp/tools/squad_evaluate_v2_0.py - About 35 mins to fix

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

                  def export_model(export_dir,
                  Severity: Minor
                  Found in research/attention_ocr/python/model_export.py - About 35 mins to fix

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

                      def __init__(self,
                    Severity: Minor
                    Found in research/seq_flow_lite/layers/transformer_layers.py - About 35 mins to fix

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

                      def axis_pad(tensor, axis, before=0, after=0, constant_values=0.0):
                      Severity: Minor
                      Found in research/attention_ocr/python/model.py - About 35 mins to fix

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

                        def preprocess_for_eval(image,
                        Severity: Minor
                        Found in research/attention_ocr/python/inception_preprocessing.py - About 35 mins to fix

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

                          def predict(task: SentencePredictionTask,
                          Severity: Minor
                          Found in official/nlp/tasks/sentence_prediction.py - About 35 mins to fix

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

                            def convert_checkpoint(bert_config,
                            Severity: Minor
                            Found in official/nlp/tools/tf2_bert_encoder_checkpoint_converter.py - About 35 mins to fix

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

                              def generate_tfexample_image(input_example_strings,
                              Severity: Minor
                              Found in research/attention_ocr/python/model_export_lib.py - About 35 mins to fix

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

                                def create_model(model, model_config, features, mode, model_name):
                                Severity: Minor
                                Found in research/seq_flow_lite/trainer.py - About 35 mins to fix

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

                                  def _get_bert_config_or_encoder_config(use_bert_config,
                                  Severity: Minor
                                  Found in official/nlp/tools/export_tfhub_lib_test.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/optimization.py - About 35 mins to fix

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

                                        def __init__(self,
                                      Severity: Minor
                                      Found in research/seq_flow_lite/layers/transformer_layers.py - About 35 mins to fix

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

                                          def _get_embeddings(self, word_ids: tf.Tensor, type_ids: tf.Tensor,
                                        Severity: Minor
                                        Found in official/nlp/modeling/networks/bert_encoder.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language