Home
last modified time | relevance | path

Searched refs:sess (Results 1 – 25 of 806) sorted by relevance

12345678910>>...33

/external/wpa_supplicant_8/src/eap_common/
Deap_eke_common.c303 int eap_eke_derive_key(struct eap_eke_session *sess, in eap_eke_derive_key() argument
314 os_memset(zeros, 0, sess->prf_len); in eap_eke_derive_key()
315 if (eap_eke_prf(sess->prf, zeros, sess->prf_len, in eap_eke_derive_key()
319 temp, sess->prf_len); in eap_eke_derive_key()
329 if (eap_eke_prfplus(sess->prf, temp, sess->prf_len, in eap_eke_derive_key()
342 int eap_eke_dhcomp(struct eap_eke_session *sess, const u8 *key, const u8 *dhpub, in eap_eke_dhcomp() argument
349 dh_len = eap_eke_dh_len(sess->dhgroup); in eap_eke_dhcomp()
359 if (sess->encr != EAP_EKE_ENCR_AES128_CBC) in eap_eke_dhcomp()
377 int eap_eke_shared_secret(struct eap_eke_session *sess, const u8 *key, in eap_eke_shared_secret() argument
386 dh = eap_eke_dh_group(sess->dhgroup); in eap_eke_shared_secret()
[all …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Ddataset_checkpoint_test.py81 with self.session(graph=g) as sess:
82 sess.run(variables.global_variables_initializer())
83 sess.run(init_op)
85 self.assertEqual(i, sess.run(get_next))
86 sess.run(save_op)
90 with self.session(graph=g) as sess:
91 sess.run(init_op)
92 sess.run(restore_op)
94 self.assertEqual(i, sess.run(get_next))
96 sess.run(get_next)
[all …]
Diterator_test.py97 with self.cached_session() as sess:
100 result = sess.run(get_next)
104 sess.run(get_next)
124 with self.cached_session() as sess:
127 result = sess.run(get_next)
131 sess.run(get_next)
156 with session.Session(server.target) as sess:
163 result = sess.run(get_next)
167 sess.run(get_next)
179 with session.Session(config=config) as sess:
[all …]
/external/tensorflow/tensorflow/python/saved_model/
Dsaved_model_test.py62 def _init_and_validate_variable(self, sess, variable_name, variable_value): argument
104 with self.session(graph=ops.Graph()) as sess:
105 self._init_and_validate_variable(sess, "v", 42)
113 sess, ["foo"],
117 with self.session(graph=ops.Graph()) as sess:
118 self._init_and_validate_variable(sess, "v", 42)
124 sess, ["foo"],
128 with self.session(graph=ops.Graph()) as sess:
129 self._init_and_validate_variable(sess, "v", 42)
136 sess, ["foo"],
[all …]
Dloader_test.py71 with session.Session(graph=g) as sess:
74 builder.add_meta_graph_and_variables(sess, ["foo_graph"], sig_def_map)
79 with session.Session(graph=g) as sess:
87 sess, ["foo_graph"], sig_def_map, init_op=assign_op)
90 sess, ["foo_graph"], sig_def_map, main_op=assign_op)
101 with self.session(graph=ops.Graph()) as sess:
102 loader.load(sess, ["foo_graph"])
103 self.assertEqual(5, sess.graph.get_tensor_by_name("x:0").eval())
104 self.assertEqual(11, sess.graph.get_tensor_by_name("y:0").eval())
108 with self.session(graph=ops.Graph()) as sess:
[all …]
/external/wpa_supplicant_8/src/radius/
Dradius_server.c422 void srv_log(struct radius_session *sess, const char *fmt, ...)
425 void srv_log(struct radius_session *sess, const char *fmt, ...) in srv_log() argument
442 RADIUS_DEBUG("[0x%x %s] %s", sess->sess_id, sess->nas_ip, buf); in srv_log()
445 if (sess->server->db) { in srv_log()
452 sess->sess_id, sess->nas_ip, in srv_log()
453 sess->username, buf); in srv_log()
455 if (sqlite3_exec(sess->server->db, sql, NULL, NULL, in srv_log()
458 sqlite3_errmsg(sess->server->db)); in srv_log()
511 struct radius_session *sess = client->sessions; in radius_server_get_session() local
513 while (sess) { in radius_server_get_session()
[all …]
/external/tensorflow/tensorflow/contrib/metrics/python/ops/
Dmetric_ops_test.py44 def _enqueue_vector(sess, queue, values, shape=None): argument
48 sess.run(
181 with self.cached_session() as sess:
184 _enqueue_vector(sess, values_queue, [0, 1])
185 _enqueue_vector(sess, values_queue, [-4.2, 9.1])
186 _enqueue_vector(sess, values_queue, [6.5, 0])
187 _enqueue_vector(sess, values_queue, [-3.2, 4.0])
192 sess.run(variables.local_variables_initializer())
194 sess.run(update_op)
195 self.assertAlmostEqual(1.65, sess.run(mean), 5)
[all …]
/external/tensorflow/tensorflow/python/training/
Dsession_manager_test.py47 sess = sm.prepare_session(
49 self.assertAllClose([1.0, 2.0, 3.0], sess.run(v))
57 sess = sm.prepare_session(
61 self.assertAllClose([1.0, 2.0, 3.0], sess.run(v))
68 sess = sm.prepare_session(
69 "", init_fn=lambda sess: sess.run(v.initializer))
70 self.assertAllClose([125], sess.run(v))
88 sess = sm.prepare_session(
93 self.assertAllClose([1.0, 2.0, 3.0], sess.run(v))
96 saver.save(sess, checkpoint_filename)
[all …]
Dsession_manager.py194 sess = session.Session(self._target, graph=self._graph, config=config)
201 return sess, False
204 saver.restore(sess, checkpoint_filename_with_path)
205 return sess, True
217 return sess, False
220 saver.restore(sess, ckpt.model_checkpoint_path)
222 return sess, True
283 sess, is_loaded_from_checkpoint = self._restore_checkpoint(
296 sess.run(init_op, feed_dict=init_feed_dict)
298 init_fn(sess)
[all …]
Dbasic_session_run_hooks_test.py157 with session_lib.Session() as sess:
158 mon_sess = monitored_session._HookedSession(sess, [h])
159 sess.run(state_ops.assign(global_step, 5))
160 h.after_create_session(sess, None)
163 sess.run(state_ops.assign(global_step, 9))
166 sess.run(state_ops.assign(global_step, 10))
169 sess.run(state_ops.assign(global_step, 11))
181 with session_lib.Session() as sess:
182 mon_sess = monitored_session._HookedSession(sess, [h])
183 sess.run(state_ops.assign(global_step, 5))
[all …]
Dsupervisor_test.py102 sess = sv.prepare_or_wait_for_session("")
105 sess.close()
113 with sv.managed_session("") as sess:
126 with sv.managed_session("") as sess:
143 with sv.managed_session("") as sess:
164 "", close_summary_writer=True, start_standard_services=False) as sess:
165 sv.summary_computed(sess, sess.run(summ))
170 "", close_summary_writer=True, start_standard_services=False) as sess:
171 sv.summary_computed(sess, sess.run(summ))
217 start_standard_services=False) as sess:
[all …]
Dwarm_starting_util_test.py51 def _write_checkpoint(self, sess): argument
55 saver.save(sess, ckpt_prefix, global_step=0)
63 with self.session(graph=g) as sess:
69 self._write_checkpoint(sess)
80 with self.session(graph=g) as sess:
88 self._write_checkpoint(sess)
112 def _assert_cols_to_vars(self, cols_to_vars, cols_to_expected_values, sess): argument
115 self.assertAllClose(expected_values[i], var.eval(sess))
122 with self.session(graph=g) as sess:
129 self.assertAllClose(prev_val, fruit_weights.eval(sess))
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dmap_stage_op_test.py49 with self.session(use_gpu=True, graph=G) as sess:
50 sess.run(stage, feed_dict={x: -1, pi: 0})
52 _, yval = sess.run([stage, y], feed_dict={x: i, pi: i + 1, gi: i})
71 with self.session(use_gpu=True, graph=G) as sess:
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})
99 with self.session(use_gpu=True, graph=G) as sess:
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})
149 with self.session(use_gpu=True, graph=G) as sess:
[all …]
/external/tensorflow/tensorflow/python/debug/lib/
Ddebug_gradients_test.py48 self.sess = session.Session(config=config)
49 with self.sess.as_default():
68 self.sess.run(variables.global_variables_initializer())
69 self.assertAllClose(5.0, self.sess.run(y))
70 self.assertAllClose(3.0, self.sess.run(u_grad))
71 self.assertAllClose(2.0, self.sess.run(v_grad))
76 self.assertAllClose(1.0, self.sess.run(w_grad))
81 self.assertAllClose(1.0, self.sess.run(w_grad))
86 self.assertAllClose(1.0, self.sess.run(w_grad))
99 self.sess.run(variables.global_variables_initializer())
[all …]
Dsession_debug_grpc_test.py131 sess = session.Session(
135 grpc_wrapper.GrpcDebugWrapperSession(sess, 1337)
138 sess = session.Session(
142 grpc_wrapper.GrpcDebugWrapperSession(sess, ["localhost:1337", 1338])
145 sess = session.Session(
149 sess, "localhost:%d" % self._server_port, watch_fn="foo")
156 sess = session.Session(
158 sess.run(u.initializer)
159 sess.run(v.initializer)
161 sess = grpc_wrapper.GrpcDebugWrapperSession(
[all …]
/external/tensorflow/tensorflow/contrib/summary/
Dsummary_ops_graph_test.py55 with self.cached_session() as sess:
56 sess.run(summary_ops.summary_writer_initializer_op())
57 sess.run(summary_ops.all_summary_ops())
67 with self.cached_session() as sess:
68 sess.run(summary_ops.summary_writer_initializer_op())
69 sess.run(summary_ops.all_summary_ops())
80 with self.cached_session() as sess:
81 sess.run(summary_ops.summary_writer_initializer_op())
82 sess.run(summary_ops.all_summary_ops())
93 with self.cached_session() as sess:
[all …]
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dtarget_column_test.py34 with ops.Graph().as_default(), session.Session() as sess:
38 5. / 3, sess.run(target_column.loss(prediction, labels, {})))
43 with ops.Graph().as_default(), session.Session() as sess:
49 sess.run(target_column.loss(prediction, labels, features)),
53 sess.run(target_column.training_loss(prediction, labels, features)),
61 with ops.Graph().as_default(), session.Session() as sess:
68 sess.run(target_column.loss(logits, labels, {})),
74 with ops.Graph().as_default(), session.Session() as sess:
82 sess.run(target_column.loss(logits, labels, features)),
87 with ops.Graph().as_default(), session.Session() as sess:
[all …]
Dencoders_test.py37 with self.cached_session() as sess:
40 sess.run(variables.global_variables_initializer())
44 with self.cached_session() as sess:
48 sess.run(variables.global_variables_initializer())
52 with self.cached_session() as sess:
55 sess.run(variables.global_variables_initializer())
59 with self.cached_session() as sess:
62 sess.run(variables.global_variables_initializer())
73 with self.cached_session() as sess:
77 sess.run(variables.global_variables_initializer())
[all …]
/external/tensorflow/tensorflow/python/client/
Dsession_partial_run_test.py44 def RunTestPartialRun(self, sess): argument
51 h = sess.partial_run_setup([r1, r2], [a, b, c])
52 res = sess.partial_run(h, r1, feed_dict={a: 1, b: 2})
55 res = sess.partial_run(h, r2, feed_dict={c: temp})
59 h2 = sess.partial_run_setup([r1, r2], [a, b, c])
60 res = sess.partial_run(h2, r1, feed_dict={a: 1, b: 2})
63 res = sess.partial_run(h2, r2, feed_dict={c: temp})
66 def RunTestPartialRunIncomplete(self, sess): argument
73 h = sess.partial_run_setup([r1, r2], [a, b, c])
74 res = sess.partial_run(h, r1, feed_dict={a: 1, b: 2})
[all …]
/external/tensorflow/tensorflow/examples/speech_commands/
Dfreeze_test.py30 with self.cached_session() as sess:
41 self.assertIsNotNone(sess.graph.get_tensor_by_name('wav_data:0'))
43 sess.graph.get_tensor_by_name('decoded_sample_data:0'))
44 self.assertIsNotNone(sess.graph.get_tensor_by_name('labels_softmax:0'))
45 ops = [node.op for node in sess.graph_def.node]
50 with self.cached_session() as sess:
61 self.assertIsNotNone(sess.graph.get_tensor_by_name('wav_data:0'))
63 sess.graph.get_tensor_by_name('decoded_sample_data:0'))
64 self.assertIsNotNone(sess.graph.get_tensor_by_name('labels_softmax:0'))
65 ops = [node.op for node in sess.graph_def.node]
[all …]
/external/tensorflow/tensorflow/contrib/opt/python/training/
Dexternal_optimizer_test.py88 with self.cached_session() as sess:
89 sess.run(variables.global_variables_initializer())
91 optimizer.minimize(sess)
93 self.assertAllClose(np.arange(2), sess.run(vector))
94 self.assertAllClose(np.arange(1) + 2, sess.run(scalar))
95 self.assertAllClose(np.arange(6).reshape(2, 3) + 3, sess.run(matrix))
110 with self.cached_session() as sess:
111 sess.run(variables.global_variables_initializer())
113 initial_vector_val = sess.run(vector)
121 sess,
[all …]
/external/tensorflow/tensorflow/contrib/legacy_seq2seq/python/kernel_tests/
Dseq2seq_test.py50 with self.cached_session() as sess:
59 sess.run([variables.global_variables_initializer()])
60 res = sess.run(dec)
64 res = sess.run([mem])
68 with self.cached_session() as sess:
75 sess.run([variables.global_variables_initializer()])
76 res = sess.run(dec)
80 res = sess.run([mem])
84 with self.cached_session() as sess:
91 sess.run([variables.global_variables_initializer()])
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dvariable_ops_test.py47 with self.test_session() as sess, self.test_scope():
54 self.assertAllClose(zeros, sess.run(y, {p: zeros}))
61 with self.test_session() as sess, self.test_scope():
63 sess.run(variables.variables_initializer([v]))
69 np.array([[2, 1 + 2j], [4, 5]]).astype(dtype), sess.run(y, {p: 1}))
75 with self.test_session() as sess, self.test_scope():
77 sess.run(variables.variables_initializer([v]))
86 with self.test_session() as sess, self.test_scope():
88 sess.run(variables.variables_initializer([v]))
98 with self.test_session() as sess, self.test_scope():
[all …]
/external/tensorflow/tensorflow/contrib/bigtable/python/kernel_tests/
Dbigtable_ops_test.py54 def _writeCommonValues(self, sess): argument
57 sess.run(write_op)
64 with self.cached_session() as sess:
65 self._writeCommonValues(sess)
66 sess.run(itr.initializer)
68 output = sess.run(n)
87 with self.cached_session() as sess:
88 self._writeCommonValues(sess)
89 sess.run(itr.initializer)
91 output = sess.run(n)
[all …]
/external/tensorflow/tensorflow/contrib/layers/python/kernel_tests/
Dsparse_feature_cross_op_test.py48 with self.cached_session() as sess:
49 self._assert_sparse_tensor_equals(expected_out, sess.run(op))
69 with self.cached_session() as sess:
70 self._assert_sparse_tensor_equals(expected_out, sess.run(op))
83 with self.cached_session() as sess:
84 self._assert_sparse_tensor_equals(expected_out, sess.run(op))
102 with self.cached_session() as sess:
103 self._assert_sparse_tensor_equals(expected_out, sess.run(op))
120 with self.cached_session() as sess:
121 self._assert_sparse_tensor_equals(expected_out, sess.run(op))
[all …]

12345678910>>...33