tensorflow/tensorflow

View on GitHub
tensorflow/python/ops/ragged/ragged_tensor.py

Summary

Maintainability
F
1 wk
Test Coverage

File ragged_tensor.py has 2398 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2018 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 tensorflow/python/ops/ragged/ragged_tensor.py - About 6 days to fix

    Function from_tensor has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def from_tensor(cls,
    Severity: Major
    Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 50 mins to fix

      Function _from_variant has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        def _from_variant(cls,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 50 mins to fix

        Function from_nested_value_rowids has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          def from_nested_value_rowids(cls,
        Severity: Minor
        Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 45 mins to fix

          Function from_uniform_row_length has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

            def from_uniform_row_length(cls,
          Severity: Minor
          Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 45 mins to fix

            Function from_value_rowids has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

              def from_value_rowids(cls,
            Severity: Minor
            Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 45 mins to fix

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

                def __init__(self,
              Severity: Minor
              Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 45 mins to fix

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

                  def from_row_lengths(cls, values, row_lengths, name=None, validate=True):
                Severity: Minor
                Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 35 mins to fix

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

                    def from_row_limits(cls, values, row_limits, name=None, validate=True):
                  Severity: Minor
                  Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 35 mins to fix

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

                      def _from_nested_row_partitions(cls,
                    Severity: Minor
                    Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 35 mins to fix

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

                        def from_row_splits(cls, values, row_splits, name=None, validate=True):
                      Severity: Minor
                      Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 35 mins to fix

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

                          def from_nested_row_splits(cls,
                        Severity: Minor
                        Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 35 mins to fix

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

                            def from_row_starts(cls, values, row_starts, name=None, validate=True):
                          Severity: Minor
                          Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 35 mins to fix

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

                              def from_nested_row_lengths(cls,
                            Severity: Minor
                            Found in tensorflow/python/ops/ragged/ragged_tensor.py - About 35 mins to fix

                              There are no issues that match your filters.

                              Category
                              Status