tensorflow/tensorflow

View on GitHub
tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py

Summary

Maintainability
F
2 wks
Test Coverage

File conv_ops_3d_test.py has 984 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2016 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/kernel_tests/nn_ops/conv_ops_3d_test.py - About 2 days to fix

    Conv3DTest has 44 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Conv3DTest(parameterized.TestCase, test.TestCase):
    
      def _SetupValuesForDevice(
          self,
          tensor_in_sizes,
    Severity: Minor
    Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 6 hrs to fix

      Function _ConstructAndTestGradientForConfig has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
      Open

        def _ConstructAndTestGradientForConfig(
            self, batch, input_shape, filter_shape, in_depth, out_depth, stride,
            padding, test_input, data_format, use_gpu):
      
          input_planes, input_rows, input_cols = input_shape
      Severity: Minor
      Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 3 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function _RunAndVerifyBackprop has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

        def _RunAndVerifyBackprop(self, input_sizes, filter_sizes, output_sizes,
                                  strides, dilations, padding, data_format, use_gpu,
                                  err, mode):
          total_input_size = 1
          total_filter_size = 1
      Severity: Minor
      Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 1 hr to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

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

        def _RunAndVerifyBackprop(self, input_sizes, filter_sizes, output_sizes,
      Severity: Major
      Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 1 hr to fix

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

          def _ConstructAndTestGradientForConfig(
        Severity: Major
        Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 1 hr to fix

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

            def _VerifyValues(
          Severity: Major
          Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 1 hr to fix

            Function _ComputeReferenceDilatedConv has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
            Open

              def _ComputeReferenceDilatedConv(
                  self,
                  tensor_in_sizes,
                  filter_in_sizes,
                  stride,
            Severity: Minor
            Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 1 hr to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

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

              def _SetupValuesForDevice(
            Severity: Major
            Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 1 hr to fix

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

                def _ComputeReferenceDilatedConv(
              Severity: Major
              Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 1 hr to fix

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

                  def _VerifyDilatedConvValues(
                Severity: Major
                Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 1 hr to fix

                  Function _SetupValuesForDevice has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                  Open

                    def _SetupValuesForDevice(
                        self,
                        tensor_in_sizes,
                        filter_in_sizes,
                        stride,
                  Severity: Minor
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 55 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function _VerifyDilatedConvValues has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                    def _VerifyDilatedConvValues(
                        self,
                        tensor_in_sizes,
                        filter_in_sizes,
                        stride,
                  Severity: Minor
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 35 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function DtypesToTest has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                  Open

                  def DtypesToTest(use_gpu):
                    # double datatype is currently not supported for convolution ops
                    # on the ROCm platform
                    optional_float64 = [] if test.is_built_with_rocm() else [dtypes.float64]
                    if use_gpu:
                  Severity: Minor
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py - About 25 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                    @parameterized.named_parameters(*DILATED_PARAMS)
                    def testConv3D2x2x2Filter1x2x1Dilation(self, data_format, use_gpu, op_name):
                      ctx = context.context()
                      is_eager = ctx is not None and ctx.executing_eagerly()
                      if test.is_gpu_available(cuda_only=True) or \
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 day to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 444..455

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 126.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                    @parameterized.named_parameters(*DILATED_PARAMS)
                    def testConv3D1x1x1Filter2x1x1Dilation(self, data_format, use_gpu, op_name):
                      ctx = context.context()
                      is_eager = ctx is not None and ctx.executing_eagerly()
                      if test.is_gpu_available(cuda_only=True) or \
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 day to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 483..494

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 126.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testConv3D2x2Depth3ValidBackpropInputStride1x1Dilation2x1(self):
                      if test.is_gpu_available(cuda_only=True):
                        for (data_format, use_gpu) in GetTestConfigs():
                          self._RunAndVerifyBackprop(
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 5 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1082..1091

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 97.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testConv3D2x2Depth3ValidBackpropFilterStride1x1Dilation2x1(self):
                      if test.is_gpu_available(cuda_only=True):
                        for (data_format, use_gpu) in GetTestConfigs():
                          self._RunAndVerifyBackprop(
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 5 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1098..1107

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 97.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                        if op_name == "Conv3D":
                          op = nn_ops.conv3d
                          conv_format = data_format
                        elif op_name == "Conv":
                          op = gen_nn_ops.conv
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 3 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 248..257

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 71.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                        if op_name == "Conv3D":
                          op = nn_ops.conv3d
                          conv_format = data_format
                        elif op_name == "Conv":
                          op = gen_nn_ops.conv
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 3 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 141..150

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 71.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testInputGradientValidPaddingStrideOne(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(3, 5, 4),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testInputGradientValidPaddingStrideThree(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(3, 7, 6),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testFilterGradientSamePaddingStrideOne(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(3, 6, 5),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testFilterGradientKernelSizeMatchesInputSize(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(5, 4, 3),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testInputGradientSamePaddingStrideOne(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(3, 2, 2),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testInputGradientValidPaddingStrideOneFastPath(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(3, 5, 4),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testFilterGradientValidPaddingStrideTwo(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(7, 6, 5),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testFilterGradientValidPaddingStrideOne(self):
                      self.ConstructAndTestGradient(
                          batch=4,
                          input_shape=(4, 6, 5),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testInputGradientKernelSizeMatchesInputSize(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(5, 4, 3),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testInputGradientSamePaddingStrideThree(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(9, 3, 6),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testFilterGradientSamePaddingStrideThree(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(9, 4, 7),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testInputGradientValidPaddingStrideTwo(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(6, 3, 5),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testInputGradientSamePaddingStrideTwo(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(6, 3, 4),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testFilterGradientValidPaddingStrideThree(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(4, 4, 7),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testFilterGradientValidPaddingStrideOneFastPath(self):
                      self.ConstructAndTestGradient(
                          batch=2,
                          input_shape=(4, 6, 5),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 911..916
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 16 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testFilterGradientSamePaddingStrideTwo(self):
                      self.ConstructAndTestGradient(
                          batch=4,
                          input_shape=(7, 3, 5),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 15 other locations - About 2 hrs to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 803..808
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 815..820
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 827..832
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 839..844
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 851..856
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 863..868
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 875..880
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 887..892
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 899..904
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 923..928
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 935..940
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 959..964
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 971..976
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 996..1001
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1008..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 50.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                        if isinstance(stride, collections_abc.Iterable):
                          strides = [1] + list(stride) + [1]
                        else:
                          strides = [1, stride, stride, stride, 1]
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 715..718

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 48.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                      if isinstance(stride, collections_abc.Iterable):
                        strides = [1] + list(stride) + [1]
                      else:
                        strides = [1, stride, stride, stride, 1]
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 132..135

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 48.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                  def GetTestConfigs():
                    """Get all the valid tests configs to run.
                  
                    Returns:
                      all the valid test configs as tuples of data_format and use_gpu.
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 2 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_test.py on lines 147..157
                  tensorflow/python/kernel_tests/nn_ops/pooling_ops_3d_test.py on lines 34..44

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 48.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 4, 2, 3, 3],  # b, z, y, x, fin
                          filter_in_sizes=[2, 2, 2, 3, 3],  # z, y, x, fin, fout
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 410..412
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 421..423
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 432..434
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 532..534
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 554..556
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 574..576
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 619..621
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 630..632
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 649..651
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 665..667

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 3, 3, 3, 1],
                          filter_in_sizes=[1, 1, 1, 1, 1],
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 410..412
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 421..423
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 432..434
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 471..473
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 532..534
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 554..556
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 574..576
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 619..621
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 649..651
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 665..667

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 1, 2, 3, 3],
                          filter_in_sizes=[1, 1, 1, 3, 3],
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 410..412
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 421..423
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 471..473
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 532..534
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 554..556
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 574..576
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 619..621
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 630..632
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 649..651
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 665..667

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 7, 7, 7, 1],
                          filter_in_sizes=[2, 2, 2, 1, 1],
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 410..412
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 421..423
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 432..434
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 471..473
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 532..534
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 554..556
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 574..576
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 619..621
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 630..632
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 649..651

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 4, 2, 3, 3],
                          filter_in_sizes=[2, 2, 2, 3, 3],
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 410..412
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 421..423
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 432..434
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 471..473
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 554..556
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 574..576
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 619..621
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 630..632
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 649..651
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 665..667

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 4, 2, 3, 3],
                          filter_in_sizes=[2, 2, 2, 3, 3],
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 410..412
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 421..423
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 432..434
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 471..473
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 532..534
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 554..556
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 619..621
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 630..632
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 649..651
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 665..667

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 2, 1, 3, 3],
                          filter_in_sizes=[1, 1, 1, 3, 3],
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 410..412
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 432..434
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 471..473
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 532..534
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 554..556
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 574..576
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 619..621
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 630..632
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 649..651
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 665..667

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 6, 7, 8, 2],
                          filter_in_sizes=[3, 2, 1, 2, 3],
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 410..412
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 421..423
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 432..434
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 471..473
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 532..534
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 574..576
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 619..621
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 630..632
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 649..651
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 665..667

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 3, 3, 3, 1],
                          filter_in_sizes=[1, 1, 1, 1, 1],
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 410..412
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 421..423
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 432..434
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 471..473
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 532..534
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 554..556
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 574..576
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 630..632
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 649..651
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 665..667

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 2, 3, 1, 3],
                          filter_in_sizes=[1, 1, 1, 3, 3],
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 421..423
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 432..434
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 471..473
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 532..534
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 554..556
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 574..576
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 619..621
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 630..632
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 649..651
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 665..667

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 11 locations. Consider refactoring.
                  Open

                      self._VerifyValues(
                          tensor_in_sizes=[1, 7, 7, 7, 1],
                          filter_in_sizes=[2, 2, 2, 1, 1],
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 10 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 410..412
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 421..423
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 432..434
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 471..473
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 532..534
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 554..556
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 574..576
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 619..621
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 630..632
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 665..667

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                      default_dilations = (
                          dilations[0] == 1 and dilations[1] == 1 and dilations[2] == 1)
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 1034..1035

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Identical blocks of code found in 2 locations. Consider refactoring.
                  Open

                      default_dilations = (
                          dilations[0] == 1 and dilations[1] == 1 and dilations[2] == 1)
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 287..288

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 47.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                    @test_util.run_deprecated_v1
                    def testInputGradientSamePaddingDifferentStrides(self):
                      self.ConstructAndTestGradient(
                          batch=1,
                          input_shape=(5, 8, 7),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 983..990

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 44.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                    def disabledtestFilterGradientSamePaddingDifferentStrides(self):
                      self.ConstructAndTestGradient(
                          batch=1,
                          input_shape=(5, 8, 7),
                          filter_shape=(1, 2, 3),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 947..955

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 44.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                      expected_output = [
                          1.51140873, 1.57167659, 1.63194444, 1.56349206, 1.62673611, 1.68998016,
                          1.6155754, 1.68179563, 1.74801587, 1.9280754, 2.01215278, 2.09623016,
                          1.98015873, 2.0672123, 2.15426587, 2.03224206, 2.12227183, 2.21230159,
                          4.4280754, 4.65500992, 4.88194444, 4.48015873, 4.71006944, 4.93998016,
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_test.py on lines 1755..1759

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 42.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  DILATED_PARAMS = [
                      ("Conv3D_NDHWC_cpu", "NDHWC", False, "Conv3D"),
                      ("Conv3D_NDHWC_gpu", "NDHWC", True, "Conv3D"),
                      ("Conv3D_NCDHW_gpu", "NCDHW", True, "Conv3D"),
                      ("Conv_NDHWC_cpu", "NDHWC", False, "Conv"),
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_test.py on lines 189..195

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 42.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                        output_planes = int(
                            math.ceil((input_planes - filter_planes + 1.0) / strides[1]))
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 2 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 723..724
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 725..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 39.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                        output_rows = int(
                            math.ceil((input_rows - filter_rows + 1.0) / strides[2]))
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 2 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 721..722
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 725..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 39.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 3 locations. Consider refactoring.
                  Open

                        output_cols = int(
                            math.ceil((input_cols - filter_cols + 1.0) / strides[3]))
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 2 other locations - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 721..722
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py on lines 723..724

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 39.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                          if test_input:
                            jacob_t, jacob_n = gradient_checker.compute_gradient(
                                orig_input_tensor, input_shape, conv, output_shape)
                          else:
                            jacob_t, jacob_n = gradient_checker.compute_gradient(
                  Severity: Major
                  Found in tensorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py and 1 other location - About 1 hr to fix
                  tensorflow/python/kernel_tests/nn_ops/conv_ops_test.py on lines 2448..2457

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 39.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  There are no issues that match your filters.

                  Category
                  Status