tensorflow/tensorflow

View on GitHub
tensorflow/python/ops/nn_impl.py

Summary

Maintainability
F
1 wk
Test Coverage

File nn_impl.py has 1879 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2015 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/nn_impl.py - About 5 days to fix

    Function _compute_sampled_logits has 13 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def _compute_sampled_logits(weights,
    Severity: Major
    Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

      Function sampled_softmax_loss has 12 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def sampled_softmax_loss(weights,
      Severity: Major
      Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

        Function batch_norm_with_global_normalization has 12 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def batch_norm_with_global_normalization(t=None,
        Severity: Major
        Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

          Function fused_batch_norm has 11 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def fused_batch_norm(
          Severity: Major
          Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

            Function nce_loss has 11 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            def nce_loss(weights,
            Severity: Major
            Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

              Function sampled_softmax_loss_v2 has 11 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              def sampled_softmax_loss_v2(weights,
              Severity: Major
              Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

                Function nce_loss_v2 has 10 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def nce_loss_v2(weights,
                Severity: Major
                Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

                  Function separable_conv2d has 9 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def separable_conv2d(input,
                  Severity: Major
                  Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

                    Function separable_conv2d_v2 has 8 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def separable_conv2d_v2(
                    Severity: Major
                    Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

                      Function depthwise_conv2d has 8 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def depthwise_conv2d(input,
                      Severity: Major
                      Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

                        Function batch_norm_with_global_normalization_v2 has 8 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def batch_norm_with_global_normalization_v2(input,
                        Severity: Major
                        Found in tensorflow/python/ops/nn_impl.py - About 1 hr to fix

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

                          def depthwise_conv2d_v2(input,
                          Severity: Major
                          Found in tensorflow/python/ops/nn_impl.py - About 50 mins to fix

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

                            def batch_normalization(x,
                            Severity: Major
                            Found in tensorflow/python/ops/nn_impl.py - About 50 mins to fix

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

                              def moments(
                              Severity: Major
                              Found in tensorflow/python/ops/nn_impl.py - About 50 mins to fix

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

                                def weighted_moments(x, axes, frequency_weights, name=None, keep_dims=None,
                                Severity: Minor
                                Found in tensorflow/python/ops/nn_impl.py - About 45 mins to fix

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

                                  def sufficient_statistics(x, axes, shift=None, keep_dims=None, name=None,
                                  Severity: Minor
                                  Found in tensorflow/python/ops/nn_impl.py - About 45 mins to fix

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

                                    def normalize_moments(counts, mean_ss, variance_ss, shift, name=None):
                                    Severity: Minor
                                    Found in tensorflow/python/ops/nn_impl.py - About 35 mins to fix

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

                                      def weighted_cross_entropy_with_logits(labels=None,
                                      Severity: Minor
                                      Found in tensorflow/python/ops/nn_impl.py - About 35 mins to fix

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

                                        def moments_v2(
                                        Severity: Minor
                                        Found in tensorflow/python/ops/nn_impl.py - About 35 mins to fix

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

                                          def sufficient_statistics_v2(x, axes, shift=None, keepdims=False, name=None):
                                          Severity: Minor
                                          Found in tensorflow/python/ops/nn_impl.py - About 35 mins to fix

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

                                            def l2_normalize(x, axis=None, epsilon=1e-12, name=None, dim=None):
                                            Severity: Minor
                                            Found in tensorflow/python/ops/nn_impl.py - About 35 mins to fix

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

                                              def weighted_moments_v2(x, axes, frequency_weights, keepdims=False, name=None):
                                              Severity: Minor
                                              Found in tensorflow/python/ops/nn_impl.py - About 35 mins to fix

                                                There are no issues that match your filters.

                                                Category
                                                Status