Home
last modified time | relevance | path

Searched refs:feed_dict (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/external/tensorflow/tensorflow/python/kernel_tests/
Dconfusion_matrix_test.py263 feed_dict = {
268 label_values, dynamic_labels.eval(feed_dict=feed_dict))
270 prediction_values, dynamic_predictions.eval(feed_dict=feed_dict))
289 feed_dict = {
294 label_values, dynamic_labels.eval(feed_dict=feed_dict))
296 prediction_values, dynamic_predictions.eval(feed_dict=feed_dict))
315 feed_dict = {
320 label_values, dynamic_labels.eval(feed_dict=feed_dict))
322 prediction_values, dynamic_predictions.eval(feed_dict=feed_dict))
342 feed_dict = {
[all …]
Das_string_op_test.py42 result = output.eval(feed_dict={input_: float_inputs_})
47 result = output.eval(feed_dict={input_: float_inputs_})
51 result = output.eval(feed_dict={input_: float_inputs_})
55 result = output.eval(feed_dict={input_: float_inputs_})
59 result = output.eval(feed_dict={input_: float_inputs_})
63 result = output.eval(feed_dict={input_: float_inputs_})
67 result = output.eval(feed_dict={input_: float_inputs_})
72 result = output.eval(feed_dict={input_: float_inputs_})
77 output.eval(feed_dict={input_: float_inputs_})
81 output.eval(feed_dict={input_: float_inputs_})
[all …]
Dmap_stage_op_test.py50 sess.run(stage, feed_dict={x: -1, pi: 0})
52 _, yval = sess.run([stage, y], feed_dict={x: i, pi: i + 1, gi: i})
72 sess.run(stage, feed_dict={x: -1, pi: 0})
74 _, yval = sess.run([stage, y], feed_dict={x: i, pi: i + 1, gi: i})
100 sess.run(stage, feed_dict={x: -1, pi: 0})
102 _, yval = sess.run([stage, y], feed_dict={x: i, pi: i + 1, gi: i})
151 sess.run(stage, feed_dict={x: i, pi: i})
154 self.assertTrue(sess.run(peek, feed_dict={gi: i})[0] == i)
178 sess.run(stage, feed_dict={x: -1, pi: 3})
180 sess.run(stage, feed_dict={x: -1, pi: 1})
[all …]
Dbias_op_deterministic_test.py66 def _assert_reproducible(self, operation, feed_dict={}): argument
68 result_a = operation[0].eval(feed_dict=feed_dict)
69 result_b = operation[0].eval(feed_dict=feed_dict)
110 feed_dict = {upstream_gradients: self._random_ndarray(out_shape)}
111 self._assert_reproducible(bias_gradients_op, feed_dict=feed_dict)
Dsession_ops_test.py47 self.assertEqual(500, sess.run(y, feed_dict={f: h.handle}))
93 result = sess.run(y, feed_dict={f: h.handle})
111 h = sess.run(h_x, feed_dict={f: h.handle})
130 rp, h = sess.run([p, h_x], feed_dict={f: h.handle})
149 self.assertEqual(500, sess.run(y, feed_dict={f: h.handle}))
156 self.assertEqual(100, sess.run(y, feed_dict={f: h.handle}))
181 sess.run(x, feed_dict={f: raw_h})
198 feed_dict={a_p: a_handle.handle,
224 feed_dict={add_h1: one_handle.handle,
244 feed_dict={a_p: a_handle.handle,
[all …]
Dstage_op_test.py47 sess.run(stage, feed_dict={x: -1})
49 _, yval = sess.run([stage, y], feed_dict={x: i})
67 sess.run(stage, feed_dict={x: -1})
69 _, yval = sess.run([stage, y], feed_dict={x: i})
93 sess.run(stage, feed_dict={x: -1})
95 _, yval = sess.run([stage, y], feed_dict={x: i})
136 sess.run(stage, feed_dict={x: i})
139 self.assertTrue(sess.run(peek, feed_dict={p: i}) == [i])
160 sess.run(stage, feed_dict={x: -1})
162 sess.run(stage, feed_dict={x: -1})
[all …]
Dembedding_ops_test.py146 feed_dict = {}
165 feed_dict[param.name] = val
166 return p, params, feed_dict
174 p, params, feed_dict = _EmbeddingParams(
184 return p, partitioned_variable, params, feed_dict
255 p, params, feed_dict = _EmbeddingParams(num_shards, vocab_size)
262 tf_result = embedding.eval(feed_dict=feed_dict)
297 p, p_variable, params, feed_dict = _EmbeddingParamsAsPartitionedVariable(
309 tf_result = embedding.eval(feed_dict=feed_dict)
347 p, params, feed_dict = _EmbeddingParams(num_shards, vocab_size)
[all …]
Dstring_to_hash_bucket_op_test.py35 result = output.eval(feed_dict={input_string: ['a', 'b', 'c']})
44 result = output.eval(feed_dict={input_string: ['a', 'b', 'c', 'd']})
57 result = output.eval(feed_dict={input_string: ['a', 'b', 'c']})
66 result = output.eval(feed_dict={input_string: ['a', 'b', 'c']})
/external/tensorflow/tensorflow/python/debug/wrappers/
Dframework.py188 def __init__(self, fetches, feed_dict, run_options, run_metadata, argument
205 self.feed_dict = feed_dict
399 feed_dict=None, argument
433 if callable_runner and (fetches or feed_dict):
437 elif callable_options and (fetches or feed_dict):
470 feed_dict=feed_dict,
476 OnRunStartRequest(fetches, feed_dict, options, run_metadata,
483 run_start_resp, fetches, feed_dict, options, run_metadata,
487 run_start_resp, fetches, feed_dict, options, run_metadata,
502 feed_dict=feed_dict,
[all …]
Dgrpc_wrapper.py33 feed_dict, argument
60 run_key = common.get_run_key(feed_dict, fetches)
122 def prepare_run_debug_urls(self, fetches, feed_dict): argument
214 feed_dict=None, argument
222 self._grpc_debug_server_urls, self.graph, feed_dict, fetches,
226 feed_dict=feed_dict,
Dhooks.py112 run_context.original_args.fetches, run_context.original_args.feed_dict,
120 None, feed_dict=None, options=config_pb2.RunOptions())
200 run_context.original_args.fetches, run_context.original_args.feed_dict)
216 None, feed_dict=None, options=run_options)
286 feed_dict = run_context.original_args.feed_dict
287 watch_options = self._watch_fn(fetches, feed_dict)
293 fetches, feed_dict),
302 None, feed_dict=None, options=run_options)
355 run_context.original_args.feed_dict,
Ddumping_wrapper.py92 def prepare_run_debug_urls(self, fetches, feed_dict): argument
126 feed_keys_event.log_message.message = (repr(feed_dict.keys()) if feed_dict
127 else repr(feed_dict))
/external/tensorflow/tensorflow/python/ops/
Dbatch_ops_test.py62 sess.run([batched, index], feed_dict={inp: [1]}))
66 main_results = sess.run([batched, index], feed_dict={inp: [2]})
105 sess.run([batched, index], feed_dict={inp: [1, 3]}))
109 main_results = sess.run([batched, index], feed_dict={inp: [2, 4]})
140 sess.run([batched], feed_dict={inp0: [1],
145 main_results = sess.run([batched], feed_dict={inp0: [2], inp1: [3]})
174 _ = sess.run([batched, index], feed_dict={inp0: [0], inp1: [1, 2]})
196 thread_results.extend(sess.run([result], feed_dict={inp: [1]}))
200 main_results = sess.run([result], feed_dict={inp: [2]})
224 thread_results.extend(sess.run([result], feed_dict={inp: [1]}))
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dslice_ops_test.py40 result = o.eval(feed_dict=params)
53 result = o.eval(feed_dict=params)
74 result = o.eval(feed_dict=params)
98 result = o.eval(feed_dict=params)
122 result = o.eval(feed_dict=params)
138 result = o.eval(feed_dict=params)
154 result = o.eval(feed_dict=params)
167 result = o.eval(feed_dict=params)
181 result = o.eval(feed_dict=params)
195 result = o.eval(feed_dict=params)
[all …]
Dgather_test.py53 gather_val = session.run(gather_t, feed_dict={params: params_np})
67 gather_val = session.run(gather_t, feed_dict={params: params_np})
83 gather_val = session.run(gather_t, feed_dict={params: params_np})
104 gather_t, feed_dict={
124 gather_value = sess.run(gather, feed_dict={tf_params: params})
137 7, gather.eval(feed_dict={params: [4, 7, 2], indices: 1}))
139 [7], gather.eval(feed_dict={params: [4, 7, 2], indices: [1]}))
141 [[7]], gather.eval(feed_dict={params: [4, 7, 2], indices: [[1]]}))
153 gather_val = session.run(gather_t, feed_dict={params: params_np})
Ddynamic_stitch_test.py44 feed_dict = {}
46 feed_dict[placeholder] = value
48 feed_dict[placeholder] = value
49 result = session.run(output, feed_dict=feed_dict)
/external/tensorflow/tensorflow/examples/tutorials/mnist/
Dfully_connected_feed.py80 feed_dict = {
84 return feed_dict
107 feed_dict = fill_feed_dict(data_set,
110 true_count += sess.run(eval_correct, feed_dict=feed_dict)
168 feed_dict = fill_feed_dict(data_sets.train,
178 feed_dict=feed_dict)
187 summary_str = sess.run(summary, feed_dict=feed_dict)
/external/tensorflow/tensorflow/python/client/
Dsession_partial_run_test.py45 res = sess.partial_run(h, r1, feed_dict={a: 1, b: 2})
48 res = sess.partial_run(h, r2, feed_dict={c: temp})
53 res = sess.partial_run(h2, r1, feed_dict={a: 1, b: 2})
56 res = sess.partial_run(h2, r2, feed_dict={c: temp})
67 res = sess.partial_run(h, r1, feed_dict={a: 1, b: 2})
79 res = sess.partial_run(h1, r1, feed_dict={a: 1, b: 2})
82 res = sess.partial_run(h2, r1, feed_dict={a: temp, b: 9})
84 res = sess.partial_run(h2, r2, feed_dict={c: 7})
99 res = sess.partial_run(h, outputs[i], feed_dict={inputs[i]: 1.0})
102 feed_dict = {}
[all …]
Dsession.py64 def run(self, fetches, feed_dict=None, options=None, run_metadata=None): argument
72 def partial_run(self, handle, fetches, feed_dict=None): argument
850 def run(self, fetches, feed_dict=None, options=None, run_metadata=None): argument
959 result = self._run(None, fetches, feed_dict, options_ptr,
971 def partial_run(self, handle, fetches, feed_dict=None): argument
1016 return self._run(handle, fetches, feed_dict, None, None)
1094 def _run(self, handle, fetches, feed_dict, options, run_metadata): argument
1117 if feed_dict:
1118 feed_dict = nest.flatten_dict_items(feed_dict)
1119 for feed, feed_val in feed_dict.items():
[all …]
/external/tensorflow/tensorflow/python/framework/
Dauto_control_deps_test.py72 self.assertAllEqual(val.eval(feed_dict={p: False}), 5.0)
73 self.assertAllEqual(val.eval(feed_dict={p: True}), 6.0)
94 one.eval(feed_dict={p: False})
96 one.eval(feed_dict={p: True})
129 self.assertAllEqual(val.eval(feed_dict={p: False, q: False}), 3.0)
130 self.assertAllEqual(val.eval(feed_dict={p: False, q: True}), 6.0)
131 self.assertAllEqual(val.eval(feed_dict={p: True, q: True}), 7.0)
132 self.assertAllEqual(val.eval(feed_dict={p: True, q: False}), 8.0)
152 self.assertAllEqual(val.eval(feed_dict={p: False}), 5.0)
153 self.assertAllEqual(val.eval(feed_dict={p: True}), 5.0)
[all …]
Dsmart_cond_test.py64 self.assertEqual(y.eval(feed_dict={x: 1}), 1)
65 self.assertEqual(y.eval(feed_dict={x: -1}), 2)
76 self.assertEqual(z.eval(feed_dict={x: 1}), 1)
85 self.assertEqual(y.eval(feed_dict={x: -1}), 2)
141 self.assertEqual(sess.run(z, feed_dict={x: 2}), 1)
142 self.assertEqual(sess.run(z, feed_dict={x: 0}), 3)
/external/tensorflow/tensorflow/python/data/kernel_tests/
Diterator_test.py432 feed_dict={handle_placeholder: iterator_4_handle}))
436 feed_dict={handle_placeholder: iterator_3_handle}))
440 feed_dict={handle_placeholder: iterator_4_handle}))
444 feed_dict={handle_placeholder: iterator_3_handle}))
448 feed_dict={handle_placeholder: iterator_4_handle}))
452 feed_dict={handle_placeholder: iterator_3_handle}))
456 feed_dict={handle_placeholder: iterator_4_handle}))
459 next_element, feed_dict={handle_placeholder: iterator_3_handle})
462 next_element, feed_dict={handle_placeholder: iterator_4_handle})
491 feed_dict={handle_placeholder: iterator_4_handle}))
[all …]
/external/tensorflow/tensorflow/python/tools/
Dsaved_model_cli_test.py421 feed_dict = saved_model_cli.load_inputs_from_input_arg_string(
423 self.assertTrue(np.all(feed_dict['x0'] == x0))
424 self.assertTrue(np.all(feed_dict['x1'] == x1))
431 feed_dict = saved_model_cli.load_inputs_from_input_arg_string(
433 self.assertTrue(np.all(feed_dict['x'] == x0))
434 self.assertTrue(np.all(feed_dict['y'] == x0))
451 feed_dict = saved_model_cli.load_inputs_from_input_arg_string(
453 self.assertTrue(np.all(feed_dict['x'] == pkl0['b']))
454 self.assertTrue(np.all(feed_dict['y'] == pkl1))
455 self.assertTrue(np.all(feed_dict['z'] == pkl2))
[all …]
/external/tensorflow/tensorflow/python/debug/cli/
Dcli_shared.py281 feed_dict, argument
303 if not feed_dict:
307 for feed_key in feed_dict:
388 feed_dict, argument
420 if not feed_dict:
423 if len(feed_dict) == 1:
424 for key in feed_dict:
429 description += "%d feeds" % len(feed_dict)
/external/tensorflow/tensorflow/python/layers/
Dnormalization_test.py88 sess.run([loss, train_op], feed_dict={image: image_val})
104 loss_val = sess.run(loss, feed_dict={image: image_val})
335 feed_dict={training: True})
352 np_output = sess.run(outputs, feed_dict={training: False})
376 feed_dict={training: True})
393 np_output = sess.run(outputs, feed_dict={training: False})
418 [outputs] + bn.updates, feed_dict={training: True})
435 np_output = sess.run(outputs, feed_dict={training: False})
459 feed_dict={training: True})
476 np_output = sess.run(outputs, feed_dict={training: False})
[all …]

12345678910>>...15