Searched defs:constant_op (Results 251 - 275 of 619) sorted by relevance

<<11121314151617181920>>

/external/tensorflow/tensorflow/python/ops/
H A Dimage_grad_test.py23 from tensorflow.python.framework import constant_op namespace
42 input_tensor = constant_op.constant(x, shape=in_shape)
58 input_tensor = constant_op.constant(x, shape=in_shape)
73 input_tensor = constant_op.constant(x, shape=in_shape)
88 input_tensor = constant_op.constant(x, shape=in_shape)
95 input_tensor = constant_op.constant(x, shape=in_shape)
112 input_tensor = constant_op.constant(x, shape=in_shape)
126 input_tensor = constant_op.constant(x, shape=in_shape)
139 input_tensor = constant_op.constant(x, shape=in_shape)
155 input_tensor = constant_op
[all...]
/external/tensorflow/tensorflow/python/summary/
H A Dsummary_test.py23 from tensorflow.python.framework import constant_op namespace
36 i = constant_op.constant(3)
49 i = constant_op.constant(7)
72 c = constant_op.constant(42.0)
169 c = constant_op.constant(3)
181 i = constant_op.constant(11)
/external/tensorflow/tensorflow/python/training/
H A Dadagrad_test.py23 from tensorflow.python.framework import constant_op namespace
46 grads0 = constant_op.constant([0.1, 0.1], dtype=dtype)
47 grads1 = constant_op.constant([0.01, 0.01], dtype=dtype)
79 x = constant_op.constant([[4.0], [5.0]], dtype=dtype)
98 grads0 = constant_op.constant([0.1, 0.1], dtype=dtype)
99 grads1 = constant_op.constant([0.01, 0.01], dtype=dtype)
101 constant_op.constant(3.0), initial_accumulator_value=0.1)
123 constant_op.constant(
125 constant_op.constant([0]),
126 constant_op
[all...]
H A Dcheckpoint_ops_test.py23 from tensorflow.python.framework import constant_op namespace
81 constant_op.constant([[self.init_val]], dtype=dtypes.float32), shape)
H A Dgradient_descent_test.py21 from tensorflow.python.framework import constant_op namespace
40 grads0 = constant_op.constant([0.1, 0.1], dtype=dtype)
41 grads1 = constant_op.constant([0.01, 0.01], dtype=dtype)
63 grads0 = constant_op.constant([0.1, 0.1], dtype=dtype)
64 grads1 = constant_op.constant([0.01, 0.01], dtype=dtype)
88 x = constant_op.constant([[4.0], [5.0]], dtype=dtype)
114 x = constant_op.constant([[4.0], [5.0]], dtype=dtype)
141 grads0 = constant_op.constant([0.1, 0.1], dtype=dtype)
142 grads1 = constant_op.constant([0.01, 0.01], dtype=dtype)
143 lrate = constant_op
[all...]
H A Dlearning_rate_decay.py22 from tensorflow.python.framework import constant_op namespace
448 const = math_ops.cast(constant_op.constant(1), learning_rate.dtype)
507 1.0 + math_ops.cos(constant_op.constant(math.pi) * completed_fraction))
601 1.0 + math_ops.cos(constant_op.constant(math.pi) * completed_fraction))
685 1.0 + math_ops.cos(constant_op.constant(math.pi) * fraction))
786 1.0 + math_ops.cos(constant_op.constant(math.pi) * fraction))
H A Dproximal_adagrad_test.py23 from tensorflow.python.framework import constant_op namespace
41 grads0 = constant_op.constant([0.1, 0.2])
42 grads1 = constant_op.constant([0.01, 0.02])
77 grads0 = constant_op.constant([0.1, 0.2])
78 grads1 = constant_op.constant([0.01, 0.02])
103 x = constant_op.constant([[4.0], [5.0]], dtype=dtype)
120 grads0 = constant_op.constant([0.1, 0.2])
121 grads1 = constant_op.constant([0.01, 0.02])
146 grads0 = constant_op.constant([0.1, 0.2])
147 grads1 = constant_op
[all...]
H A Dproximal_gradient_descent_test.py23 from tensorflow.python.framework import constant_op namespace
46 grads0 = constant_op.constant([0.1, 0.2])
47 grads1 = constant_op.constant([0.01, 0.02])
75 grads0 = constant_op.constant([0.1, 0.2])
76 grads1 = constant_op.constant([0.01, 0.02])
99 x = constant_op.constant([[4.0], [5.0]], dtype=dtype)
117 grads0 = constant_op.constant([0.1, 0.2])
118 grads1 = constant_op.constant([0.01, 0.02])
142 constant_op.constant(
144 constant_op
[all...]
H A Drmsprop_test.py27 from tensorflow.python.framework import constant_op namespace
107 grads0 = constant_op.constant(grads0_np)
108 grads1 = constant_op.constant(grads1_np)
169 x = constant_op.constant([[4.0], [5.0]], dtype=dtype)
191 x = constant_op.constant([[4.0], [5.0]], dtype=dtype)
224 constant_op.constant(grads0_np),
225 constant_op.constant(grads0_np_indices), constant_op.constant([1]))
228 constant_op.constant(grads1_np),
229 constant_op
[all...]
H A Dslot_creator_test.py21 from tensorflow.python.framework import constant_op namespace
50 v = constant_op.constant([1.0, 2.5], name="const")
76 dyn_shape = constant_op.constant([2], dtype=dtypes.int32)
97 v = constant_op.constant([1.0, 2.5], name="const")
H A Dsync_replicas_optimizer_test.py23 from tensorflow.python.framework import constant_op namespace
50 grads_0 = constant_op.constant(0.1 + worker_id * 0.2)
51 grads_1 = constant_op.constant(0.9 + worker_id * 0.2)
54 constant_op.constant(
56 constant_op.constant([1]),
57 constant_op.constant([2, 1]))
/external/tensorflow/tensorflow/python/util/
H A Dtf_should_use_test.py26 from tensorflow.python.framework import constant_op namespace
50 c = constant_op.constant(0, name='blah0')
64 c = constant_op.constant(0, name=name)
93 return constant_op.constant(value, name='blah2')
107 return constant_op.constant(value, name='blah3')
114 v = constant_op.constant(1.0, name='meh')
126 return constant_op.constant(value, name='blah3')
/external/tensorflow/tensorflow/compiler/aot/tests/
H A Dmake_test_graphs.py27 from tensorflow.python.framework import constant_op namespace
41 x = constant_op.constant([1], name='x_const')
42 y = constant_op.constant([2], name='y_const')
48 y = variables.Variable(constant_op.constant([0]), name='y_saved')
63 y = variables.Variable(constant_op.constant([0]), name='y_saved')
106 x = constant_op.constant([1], name='x_const')
107 y = constant_op.constant([2], name='y_const')
/external/tensorflow/tensorflow/compiler/tests/
H A Dconcat_ops_test.py24 from tensorflow.python.framework import constant_op namespace
71 x1 = constant_op.constant(p1)
72 x2 = constant_op.constant(p2)
142 constant_op.constant(
149 grad_tensor = constant_op.constant(
169 constant_op.constant(
176 grad_tensor = constant_op.constant(
197 constant_op.constant(
204 grad_tensor = constant_op.constant(
233 constant_op
[all...]
H A Ddepthwise_conv_op_test.py25 from tensorflow.python.framework import constant_op namespace
325 t0 = constant_op.constant(input_sizes, shape=[len(input_sizes)])
361 t1 = constant_op.constant(filter_sizes, shape=[len(filter_sizes)])
H A Dgather_test.py24 from tensorflow.python.framework import constant_op namespace
51 indices_tf = constant_op.constant(indices)
65 indices = constant_op.constant(2)
80 indices = constant_op.constant([0, 1, 0, 2])
119 tf_indices = constant_op.constant(indices, dtype=dtypes.int32)
H A Dlstm_test.py29 from tensorflow.python.framework import constant_op namespace
81 m_prev = constant_op.constant([[m_prev_scalar]] * self._batch_size)
82 c_prev = constant_op.constant([[c_prev_scalar]] * self._batch_size)
83 x = constant_op.constant(self._inputs)
84 pad = constant_op.constant([[pad_scalar]] * self._batch_size)
120 weight_tf = constant_op.constant(weight, dtypes.float32)
145 m = constant_op.constant([[0.]] * self._batch_size)
146 c = constant_op.constant([[0.]] * self._batch_size)
147 x_seq = [constant_op.constant(self._inputs)] * seq_length
148 pad = constant_op
[all...]
H A Dvariable_ops_test.py24 from tensorflow.python.framework import constant_op namespace
206 x = constant_op.constant(self.x_np, dtype=self.dtype)
/external/tensorflow/tensorflow/contrib/all_reduce/python/
H A Dall_reduce_test.py27 from tensorflow.python.framework import constant_op namespace
83 t8 = constant_op.constant(
149 x, constant_op.constant(num_devices, dtype=types_pb2.DT_FLOAT))
/external/tensorflow/tensorflow/contrib/bayesflow/python/kernel_tests/
H A Dmonte_carlo_test.py27 from tensorflow.python.framework import constant_op namespace
47 mu_p = constant_op.constant([-1.0, 1.0], dtype=dtypes.float64)
48 mu_q = constant_op.constant([0.0, 0.0], dtype=dtypes.float64)
49 sigma_p = constant_op.constant([0.5, 0.5], dtype=dtypes.float64)
50 sigma_q = constant_op.constant([1.0, 1.0], dtype=dtypes.float64)
104 mu_p = constant_op.constant([0.0, 0.0], dtype=dtypes.float64)
105 mu_q = constant_op.constant([-1.0, 1.0], dtype=dtypes.float64)
106 sigma_p = constant_op.constant([1.0, 2 / 3.], dtype=dtypes.float64)
107 sigma_q = constant_op.constant([1.0, 1.0], dtype=dtypes.float64)
171 x = constant_op
[all...]
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/learner/batch/
H A Dordinal_split_handler.py70 from tensorflow.python.framework import constant_op namespace
427 empty_float = constant_op.constant([], dtype=dtypes.float32)
443 return (constant_op.constant([], dtype=dtypes.int32),
444 constant_op.constant([[]], dtype=dtypes.int64, shape=[1, 2]),
510 return (constant_op.constant([], dtype=dtypes.int32),
511 constant_op.constant([], dtype=dtypes.int64, shape=[1, 2]),
514 empty_float = constant_op.constant([], dtype=dtypes.float32)
515 handler_not_active = (constant_op.constant(
516 [], dtype=dtypes.int64, shape=[0, 2]), empty_float, constant_op.constant(
/external/tensorflow/tensorflow/contrib/boosted_trees/python/kernel_tests/
H A Dtraining_ops_test.py30 from tensorflow.python.framework import constant_op namespace
151 grads = constant_op.constant([0.4, -0.3])
152 hess = constant_op.constant([2.0, 1.0])
202 grads = constant_op.constant([0.06, 0.01])
203 hess = constant_op.constant([0.5, 0.5])
249 grads = constant_op.constant([0.0000001, -0.00003])
250 hess = constant_op.constant([0.5, 0.0])
/external/tensorflow/tensorflow/contrib/compiler/
H A Djit_test.py22 from tensorflow.python.framework import constant_op namespace
95 a1 = constant_op.constant(1)
98 a2 = constant_op.constant(1)
101 a3 = constant_op.constant(1)
104 a4 = constant_op.constant(1)
106 a5 = constant_op.constant(1)
109 a6 = constant_op.constant(1)
146 x = constant_op.constant(1.0)
162 x = constant_op.constant(1.0)
178 x = constant_op
[all...]
/external/tensorflow/tensorflow/contrib/data/python/kernel_tests/
H A Dbucketing_test.py25 from tensorflow.python.framework import constant_op namespace
114 constant_op.constant([5], dtype=dtypes.int64) * -1))
356 window_sizes = constant_op.constant([5, 10], dtype=dtypes.int64)
H A Dflat_map_dataset_op_test.py22 from tensorflow.python.framework import constant_op namespace
71 return constant_op.constant(1000) + math_ops.to_int32(x)

Completed in 2000 milliseconds

<<11121314151617181920>>