tensorflow/models

View on GitHub
official/projects/maxvit/modeling/maxvit.py

Summary

Maintainability
F
3 days
Test Coverage

File maxvit.py has 817 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: Major
Found in official/projects/maxvit/modeling/maxvit.py - About 1 day to fix

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

      def __init__(
    Severity: Major
    Found in official/projects/maxvit/modeling/maxvit.py - About 4 hrs to fix

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

        def __init__(
      Severity: Major
      Found in official/projects/maxvit/modeling/maxvit.py - About 3 hrs to fix

        Function __init__ has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          def __init__(
              self,
              hidden_size: int,
              head_size: int,
              window_size: int,
        Severity: Minor
        Found in official/projects/maxvit/modeling/maxvit.py - About 1 hr to fix

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

            def grid_stitch_back(
          Severity: Minor
          Found in official/projects/maxvit/modeling/maxvit.py - About 35 mins to fix

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

              def window_stitch_back(
            Severity: Minor
            Found in official/projects/maxvit/modeling/maxvit.py - About 35 mins to fix

              There are no issues that match your filters.

              Category
              Status