Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/tensorflow/python/ops/standard_ops.py: 100%

77 statements  

« prev     ^ index     » next       coverage.py v7.4.0, created at 2024-01-03 07:57 +0000

1# Copyright 2015 The TensorFlow Authors. All Rights Reserved. 

2# 

3# Licensed under the Apache License, Version 2.0 (the "License"); 

4# you may not use this file except in compliance with the License. 

5# You may obtain a copy of the License at 

6# 

7# http://www.apache.org/licenses/LICENSE-2.0 

8# 

9# Unless required by applicable law or agreed to in writing, software 

10# distributed under the License is distributed on an "AS IS" BASIS, 

11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

12# See the License for the specific language governing permissions and 

13# limitations under the License. 

14# ============================================================================== 

15 

16# pylint: disable=unused-import 

17"""Import names of Tensor Flow standard Ops.""" 

18 

19import platform as _platform 

20import sys as _sys 

21 

22from tensorflow.python import autograph 

23 

24# pylint: disable=g-bad-import-order 

25# Imports the following modules so that @RegisterGradient get executed. 

26from tensorflow.python.ops import array_grad 

27from tensorflow.python.ops import cudnn_rnn_grad 

28from tensorflow.python.ops import data_flow_grad 

29from tensorflow.python.ops import manip_grad 

30from tensorflow.python.ops import math_grad 

31from tensorflow.python.ops import random_grad 

32from tensorflow.python.ops import rnn_grad 

33from tensorflow.python.ops import sparse_grad 

34from tensorflow.python.ops import state_grad 

35from tensorflow.python.ops import tensor_array_grad 

36 

37 

38# go/tf-wildcard-import 

39# pylint: disable=wildcard-import 

40from tensorflow.python.ops.array_ops import * # pylint: disable=redefined-builtin 

41from tensorflow.python.ops.check_ops import * 

42from tensorflow.python.ops.clip_ops import * 

43from tensorflow.python.ops.special_math_ops import * 

44# TODO(vrv): Switch to import * once we're okay with exposing the module. 

45from tensorflow.python.ops.cond import cond 

46from tensorflow.python.ops.confusion_matrix import confusion_matrix 

47from tensorflow.python.ops.control_flow_assert import Assert 

48from tensorflow.python.ops.control_flow_case import case 

49from tensorflow.python.ops.control_flow_ops import group 

50from tensorflow.python.ops.control_flow_ops import no_op 

51from tensorflow.python.ops.control_flow_ops import tuple # pylint: disable=redefined-builtin 

52# pylint: enable=redefined-builtin 

53from tensorflow.python.eager import wrap_function 

54from tensorflow.python.ops.while_loop import while_loop 

55from tensorflow.python.ops.batch_ops import * 

56from tensorflow.python.ops.critical_section_ops import * 

57from tensorflow.python.ops.data_flow_ops import * 

58from tensorflow.python.ops.functional_ops import * 

59from tensorflow.python.ops.gradients import * 

60from tensorflow.python.ops.histogram_ops import * 

61from tensorflow.python.ops.init_ops import * 

62from tensorflow.python.ops.io_ops import * 

63from tensorflow.python.ops.linalg_ops import * 

64from tensorflow.python.ops.logging_ops import Print 

65from tensorflow.python.ops.logging_ops import get_summary_op 

66from tensorflow.python.ops.logging_ops import timestamp 

67from tensorflow.python.ops.lookup_ops import initialize_all_tables 

68from tensorflow.python.ops.lookup_ops import tables_initializer 

69from tensorflow.python.ops.manip_ops import * 

70from tensorflow.python.ops.math_ops import * # pylint: disable=redefined-builtin 

71from tensorflow.python.ops.numerics import * 

72from tensorflow.python.ops.parsing_ops import * 

73from tensorflow.python.ops.partitioned_variables import * 

74from tensorflow.python.ops.proto_ops import * 

75from tensorflow.python.ops.ragged import ragged_dispatch as _ragged_dispatch 

76from tensorflow.python.ops.ragged import ragged_operators as _ragged_operators 

77from tensorflow.python.ops.random_ops import * 

78from tensorflow.python.ops.script_ops import py_func 

79from tensorflow.python.ops.session_ops import * 

80from tensorflow.python.ops.sort_ops import * 

81from tensorflow.python.ops.sparse_ops import * 

82from tensorflow.python.ops.state_ops import assign 

83from tensorflow.python.ops.state_ops import assign_add 

84from tensorflow.python.ops.state_ops import assign_sub 

85from tensorflow.python.ops.state_ops import count_up_to 

86from tensorflow.python.ops.state_ops import scatter_add 

87from tensorflow.python.ops.state_ops import scatter_div 

88from tensorflow.python.ops.state_ops import scatter_mul 

89from tensorflow.python.ops.state_ops import scatter_sub 

90from tensorflow.python.ops.state_ops import scatter_min 

91from tensorflow.python.ops.state_ops import scatter_max 

92from tensorflow.python.ops.state_ops import scatter_update 

93from tensorflow.python.ops.state_ops import scatter_nd_add 

94from tensorflow.python.ops.state_ops import scatter_nd_sub 

95# TODO(simister): Re-enable once binary size increase due to scatter_nd 

96# ops is under control. 

97# from tensorflow.python.ops.state_ops import scatter_nd_mul 

98# from tensorflow.python.ops.state_ops import scatter_nd_div 

99from tensorflow.python.ops.state_ops import scatter_nd_update 

100from tensorflow.python.ops.stateless_random_ops import * 

101from tensorflow.python.ops.string_ops import * 

102from tensorflow.python.ops.template import * 

103from tensorflow.python.ops.tensor_array_ops import * 

104from tensorflow.python.ops.variable_scope import * # pylint: disable=redefined-builtin 

105from tensorflow.python.ops.variables import * 

106from tensorflow.python.ops.parallel_for.control_flow_ops import vectorized_map 

107 

108from tensorflow.python.compiler.tensorrt import trt_convert as trt 

109 

110# pylint: enable=wildcard-import 

111# pylint: enable=g-bad-import-order 

112 

113 

114# These modules were imported to set up RaggedTensor operators and dispatchers: 

115del _ragged_dispatch, _ragged_operators