tensorflow/models

View on GitHub

Showing 11,634 of 11,634 total issues

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

def _split_a_and_b(data, sent_ids, begin_idx, tot_len, extend_target=False):
Severity: Minor
Found in official/legacy/xlnet/preprocess_pretrain_data.py - About 35 mins to fix

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

    def _local_perm(inputs, targets, is_masked, perm_size, seq_len):
    Severity: Minor
    Found in official/legacy/xlnet/preprocess_pretrain_data.py - About 35 mins to fix

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

        def input_fn(is_training, data_dir, batch_size, *args, **kwargs):
      Severity: Minor
      Found in official/legacy/image_classification/resnet/common.py - About 35 mins to fix

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

        def _online_sample_masks(inputs,
        Severity: Minor
        Found in official/legacy/xlnet/data_utils.py - About 35 mins to fix

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

          def _idx_pair_to_mask(beg_indices, end_indices, inputs, tgt_len, num_predict):
          Severity: Minor
          Found in official/legacy/xlnet/data_utils.py - About 35 mins to fix

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

            def _sample_mask_ngram(sp, seg, reverse=False, max_gram=5,
            Severity: Minor
            Found in official/legacy/xlnet/preprocess_pretrain_data.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/vision/ops/anchor_generator.py - About 35 mins to fix

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

                def _shift_bbox(bbox, image_height, image_width, pixels, shift_horizontal):
                Severity: Minor
                Found in official/vision/ops/augment.py - About 35 mins to fix

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

                  def build_anchor_generator(
                  Severity: Minor
                  Found in official/vision/ops/anchor.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/legacy/bert/bert_models.py - About 35 mins to fix

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

                      def predict_squad_customized(strategy, input_meta_data, predict_tfrecord_path,
                      Severity: Minor
                      Found in official/legacy/bert/run_squad_helper.py - About 35 mins to fix

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

                        def _check_bbox_area(min_y, min_x, max_y, max_x, delta=0.05):
                        Severity: Minor
                        Found in official/vision/ops/augment.py - About 35 mins to fix

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

                          def random_crop_image(
                          Severity: Minor
                          Found in official/vision/ops/preprocess_ops.py - About 35 mins to fix

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

                            def get_pretrain_dataset_fn(input_file_pattern, seq_length,
                            Severity: Minor
                            Found in official/legacy/bert/run_pretraining.py - About 35 mins to fix

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

                              def bbox2mask(bbox: tf.Tensor,
                              Severity: Minor
                              Found in official/vision/ops/box_ops.py - About 35 mins to fix

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

                                def indices_to_dense_vector(indices,
                                Severity: Minor
                                Found in official/vision/ops/sampling_ops.py - About 35 mins to fix

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

                                  def get_predictions_and_labels(strategy,
                                  Severity: Minor
                                  Found in official/legacy/bert/run_classifier.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/legacy/image_classification/augment.py - About 35 mins to fix

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

                                        def __init__(
                                      Severity: Minor
                                      Found in official/legacy/image_classification/optimizer_factory.py - About 35 mins to fix

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

                                        def export_bert_tfhub(bert_config: configs.BertConfig,
                                        Severity: Minor
                                        Found in official/legacy/bert/export_tfhub.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language