tensorflow/tensorflow

View on GitHub

Showing 8,379 of 21,083 total issues

MicroBenchmarks has 252 functions (exceeds 20 allowed). Consider refactoring.
Open

class MicroBenchmarks(benchmarks_test_base.MicroBenchmarksBase):
  def __init__(self):
    # used for multiply benchmarks
    self._m_2 = random_ops.random_uniform([2])

Severity: Major
Found in tensorflow/python/eager/benchmarks_test.py - About 5 days to fix

    File tensor_tracer.py has 1826 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
    #
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    Severity: Major
    Found in tensorflow/python/tpu/tensor_tracer.py - About 4 days to fix

      File monitored_session_test.py has 1807 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # pylint: disable=g-bad-file-header
      # 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.
      Severity: Major
      Found in tensorflow/python/training/monitored_session_test.py - About 4 days to fix

        File tracing_compilation_test.py has 1790 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # Copyright 2017 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

          File base_layer_v1.py has 1781 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
          #
          # Licensed under the Apache License, Version 2.0 (the "License");
          # you may not use this file except in compliance with the License.
          # You may obtain a copy of the License at
          Severity: Major
          Found in tensorflow/python/keras/engine/base_layer_v1.py - About 4 days to fix

            File session_test.py has 1755 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
            #
            # Licensed under the Apache License, Version 2.0 (the "License");
            # you may not use this file except in compliance with the License.
            # You may obtain a copy of the License at
            Severity: Major
            Found in tensorflow/python/client/session_test.py - About 4 days to fix

              ControlFlowTest has 233 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class ControlFlowTest(test.TestCase, parameterized.TestCase):
              
                @test_util.run_v1_only("b/120545219")
                def testRefIdentity(self):
                  with self.cached_session():

                File while_v2_test.py has 1726 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
                #
                # Licensed under the Apache License, Version 2.0 (the "License");
                # you may not use this file except in compliance with the License.
                # You may obtain a copy of the License at
                Severity: Major
                Found in tensorflow/python/kernel_tests/control_flow/while_v2_test.py - About 4 days to fix

                  File layout_optimizer_test.py has 1710 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  # Copyright 2017 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/grappler/layout_optimizer_test.py - About 4 days to fix

                    File control_flow_ops.py has 1701 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
                    #
                    # Licensed under the Apache License, Version 2.0 (the "License");
                    # you may not use this file except in compliance with the License.
                    # You may obtain a copy of the License at
                    Severity: Major
                    Found in tensorflow/python/ops/control_flow_ops.py - About 4 days to fix

                      File analyzer_cli_test.py has 1697 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/debug/cli/analyzer_cli_test.py - About 4 days to fix

                        File backprop_test.py has 1673 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        # Copyright 2017 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/eager/backprop_test.py - About 4 days to fix

                          File losses.py has 1672 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
                          #
                          # Licensed under the Apache License, Version 2.0 (the "License");
                          # you may not use this file except in compliance with the License.
                          # You may obtain a copy of the License at
                          Severity: Major
                          Found in tensorflow/python/keras/losses.py - About 4 days to fix

                            File input_lib_test.py has 1666 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
                            #
                            # Licensed under the Apache License, Version 2.0 (the "License");
                            # you may not use this file except in compliance with the License.
                            # You may obtain a copy of the License at
                            Severity: Major
                            Found in tensorflow/python/distribute/input_lib_test.py - About 4 days to fix

                              File np_array_ops.py has 1661 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
                              #
                              # Licensed under the Apache License, Version 2.0 (the "License");
                              # you may not use this file except in compliance with the License.
                              # You may obtain a copy of the License at
                              Severity: Major
                              Found in tensorflow/python/ops/numpy_ops/np_array_ops.py - About 4 days to fix

                                File nn_test.py has 1655 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
                                #
                                # Licensed under the Apache License, Version 2.0 (the "License");
                                # you may not use this file except in compliance with the License.
                                # You may obtain a copy of the License at
                                Severity: Major
                                Found in tensorflow/python/ops/nn_test.py - About 4 days to fix

                                  File structured_tensor_test.py has 1644 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open

                                  # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
                                  #
                                  # Licensed under the Apache License, Version 2.0 (the "License");
                                  # you may not use this file except in compliance with the License.
                                  # You may obtain a copy of the License at
                                  Severity: Major
                                  Found in tensorflow/python/ops/structured/structured_tensor_test.py - About 4 days to fix

                                    File variables.py has 1637 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
                                    #
                                    # Licensed under the Apache License, Version 2.0 (the "License");
                                    # you may not use this file except in compliance with the License.
                                    # You may obtain a copy of the License at
                                    Severity: Major
                                    Found in tensorflow/python/ops/variables.py - About 4 days to fix

                                      FunctionTest has 218 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class FunctionTest(test.TestCase, parameterized.TestCase):
                                      
                                        def setUp(self):
                                          super().setUp()
                                          cpus = config.list_physical_devices('CPU')

                                        File resource_variable_ops_test.py has 1579 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/variables/resource_variable_ops_test.py - About 4 days to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language