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, annotation_file, include_mask, need_rescale_bboxes=True,
Severity: Minor
Found in official/legacy/detection/evaluation/coco_evaluator.py - About 35 mins to fix

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

      def __init__(self, num_classes, num_downsample_channels, mask_crop_size,
    Severity: Minor
    Found in official/legacy/detection/modeling/architecture/heads.py - About 35 mins to fix

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

        def _create_replicated_step(self,
      Severity: Minor
      Found in official/legacy/detection/executor/distributed_executor.py - About 35 mins to fix

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

          def __init__(self, strategy, params, model_fn, loss_fn, is_multi_host=False):
        Severity: Minor
        Found in official/legacy/detection/executor/distributed_executor.py - About 35 mins to fix

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

          def focal_loss(logits, targets, alpha, gamma, normalizer):
          Severity: Minor
          Found in official/legacy/detection/modeling/losses.py - About 35 mins to fix

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

              def __call__(self, fpn_features, boxes, outer_boxes, classes, is_training):
            Severity: Minor
            Found in official/legacy/detection/modeling/architecture/heads.py - About 35 mins to fix

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

                def residual_block(self,
              Severity: Minor
              Found in official/legacy/detection/modeling/architecture/resnet.py - About 35 mins to fix

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

                  def _create_train_step(self,
                Severity: Minor
                Found in official/legacy/detection/executor/distributed_executor.py - About 35 mins to fix

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

                  def norm_activation_builder(momentum=0.997,
                  Severity: Minor
                  Found in official/legacy/detection/modeling/architecture/nn_ops.py - About 35 mins to fix

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

                    def get_classification_input_data(batch_size, seq_len, strategy, is_training,
                    Severity: Minor
                    Found in official/legacy/xlnet/data_utils.py - About 35 mins to fix

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

                      def get_synth_data(height, width, num_channels, num_classes, dtype):
                      Severity: Minor
                      Found in official/legacy/image_classification/resnet/common.py - About 35 mins to fix

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

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

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

                          def _sample_mask(sp, seg, reverse=False, max_gram=5, goal_num_predict=None):
                          Severity: Minor
                          Found in official/legacy/xlnet/preprocess_pretrain_data.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/transformer/attention_layer.py - About 35 mins to fix

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

                                def __init__(self, use_proj, xlnet_config, run_config, use_legacy_mask=True,
                              Severity: Minor
                              Found in official/legacy/xlnet/xlnet_modeling.py - About 35 mins to fix

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

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

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

                                  def _generate_subtokens(token_counts,
                                  Severity: Minor
                                  Found in official/legacy/transformer/utils/tokenizer.py - About 35 mins to fix

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

                                    def encode_and_save_files(subtokenizer, data_dir, raw_files, tag, total_shards):
                                    Severity: Minor
                                    Found in official/legacy/transformer/data_download.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/xlnet/classifier_utils.py - About 35 mins to fix

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

                                        def _local_perm(inputs, is_masked, perm_size, seq_len, leak_ratio):
                                        Severity: Minor
                                        Found in official/legacy/xlnet/data_utils.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language