Showing 8,379 of 21,083 total issues
MicroBenchmarks
has 252 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class MicroBenchmarks(benchmarks_test_base.MicroBenchmarksBase):
def __init__(self):
# used for multiply benchmarks
self._m_2 = random_ops.random_uniform([2])
File tensor_tracer.py
has 1826 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File monitored_session_test.py
has 1807 lines of code (exceeds 250 allowed). Consider refactoring. Open
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.
File tracing_compilation_test.py
has 1790 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
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
File session_test.py
has 1755 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
ControlFlowTest
has 233 functions (exceeds 20 allowed). Consider refactoring. Open
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
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
File layout_optimizer_test.py
has 1710 lines of code (exceeds 250 allowed). Consider refactoring. Open
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 control_flow_ops.py
has 1701 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File analyzer_cli_test.py
has 1697 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File backprop_test.py
has 1673 lines of code (exceeds 250 allowed). Consider refactoring. Open
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 losses.py
has 1672 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File input_lib_test.py
has 1666 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File np_array_ops.py
has 1661 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File nn_test.py
has 1655 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File structured_tensor_test.py
has 1644 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File variables.py
has 1637 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
FunctionTest
has 218 functions (exceeds 20 allowed). Consider refactoring. Open
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
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