/external/wpa_supplicant_8/src/eap_common/ |
D | eap_eke_common.c | 303 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/saved_model/ |
D | saved_model_test.py | 66 def _init_and_validate_variable(self, sess, variable_name, variable_value): argument 128 with self.session(graph=ops.Graph()) as sess: 129 self._init_and_validate_variable(sess, "v", 42) 137 sess, ["foo"], 141 with self.session(graph=ops.Graph()) as sess: 142 self._init_and_validate_variable(sess, "v", 42) 147 sess, ["foo"], signature_def_map={"foo_key": foo_signature}) 150 with self.session(graph=ops.Graph()) as sess: 151 self._init_and_validate_variable(sess, "v", 42) 158 sess, ["foo"], [all …]
|
D | loader_test.py | 78 with session.Session(graph=g) as sess: 81 builder.add_meta_graph_and_variables(sess, ["foo_graph"], sig_def_map) 86 with session.Session(graph=g) as sess: 94 sess, ["foo_graph"], sig_def_map, init_op=assign_op) 97 sess, ["foo_graph"], sig_def_map, main_op=assign_op) 111 with self.session(graph=ops.Graph()) as sess: 112 loader.load(sess, ["foo_graph"]) 113 self.assertEqual(5, sess.run(_tensor_name("x"))) 114 self.assertEqual(11, sess.run(_tensor_name("y"))) 118 with self.session(graph=ops.Graph()) as sess: [all …]
|
/external/wpa_supplicant_8/src/radius/ |
D | radius_server.c | 284 void srv_log(struct radius_session *sess, const char *fmt, ...) 287 void srv_log(struct radius_session *sess, const char *fmt, ...) in srv_log() argument 304 RADIUS_DEBUG("[0x%x %s] %s", sess->sess_id, sess->nas_ip, buf); in srv_log() 307 if (sess->server->db) { in srv_log() 314 sess->sess_id, sess->nas_ip, in srv_log() 315 sess->username, buf); in srv_log() 317 if (sqlite3_exec(sess->server->db, sql, NULL, NULL, in srv_log() 320 sqlite3_errmsg(sess->server->db)); in srv_log() 373 struct radius_session *sess = client->sessions; in radius_server_get_session() local 375 while (sess) { in radius_server_get_session() [all …]
|
/external/tensorflow/tensorflow/python/training/ |
D | session_manager.py | 199 sess = session.Session(self._target, graph=self._graph, config=config) 206 return sess, False 209 saver.restore(sess, checkpoint_filename_with_path) 210 return sess, True 222 return sess, False 225 saver.restore(sess, ckpt.model_checkpoint_path) 227 return sess, True 288 sess, is_loaded_from_checkpoint = self._restore_checkpoint( 301 sess.run(init_op, feed_dict=init_feed_dict) 303 init_fn(sess) [all …]
|
D | session_manager_test.py | 53 sess = sm.prepare_session( 55 self.assertAllClose([1.0, 2.0, 3.0], sess.run(v)) 63 sess = sm.prepare_session( 67 self.assertAllClose([1.0, 2.0, 3.0], sess.run(v)) 74 sess = sm.prepare_session( 75 "", init_fn=lambda sess: sess.run(v.initializer)) 76 self.assertAllClose([125], sess.run(v)) 87 sess = sm.prepare_session("") 88 self.assertAllClose([1.0, 2.0, 3.0], sess.run(v)) 105 sess = sm.prepare_session( [all …]
|
D | basic_session_run_hooks_test.py | 156 with session_lib.Session() as sess: 157 mon_sess = monitored_session._HookedSession(sess, [h]) 158 sess.run(state_ops.assign(global_step, 5)) 159 h.after_create_session(sess, None) 162 sess.run(state_ops.assign(global_step, 9)) 165 sess.run(state_ops.assign(global_step, 10)) 168 sess.run(state_ops.assign(global_step, 11)) 180 with session_lib.Session() as sess: 181 mon_sess = monitored_session._HookedSession(sess, [h]) 182 sess.run(state_ops.assign(global_step, 5)) [all …]
|
D | supervisor_test.py | 102 sess = sv.prepare_or_wait_for_session("") 105 sess.close() 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: 218 sv.summary_computed(sess, sess.run(summ)) [all …]
|
D | warm_starting_util_test.py | 53 def _write_checkpoint(self, sess): argument 57 saver.save(sess, ckpt_prefix, global_step=0) 65 with self.session(graph=g) as sess: 71 self._write_checkpoint(sess) 82 with self.session(graph=g) as sess: 90 self._write_checkpoint(sess) 114 def _assert_cols_to_vars(self, cols_to_vars, cols_to_expected_values, sess): argument 117 self.assertAllClose(expected_values[i], var.eval(sess)) 124 with self.session(graph=g) as sess: 131 self.assertAllClose(prev_val, fruit_weights.eval(sess)) [all …]
|
D | quantize_training_test.py | 40 with session.Session() as sess: 46 self.assertEqual(len(sess.graph_def.node), 3) 49 sess.graph_def, 8) 61 with session.Session(graph=g) as sess: 72 sess.graph_def, 8) 74 with ops.Graph().as_default() as g, session.Session(graph=g) as sess: 84 saver.save(sess, save_path) 86 with ops.Graph().as_default() as g, session.Session(graph=g) as sess: 91 saver.restore(sess, save_path) 92 self.assertEqual(7.0, sess.run(g.get_tensor_by_name('b:0'))) [all …]
|
/external/tensorflow/tensorflow/python/debug/lib/ |
D | debug_gradients_test.py | 48 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 …]
|
D | session_debug_grpc_test.py | 132 sess = session.Session( 136 grpc_wrapper.GrpcDebugWrapperSession(sess, 1337) 139 sess = session.Session( 143 grpc_wrapper.GrpcDebugWrapperSession(sess, ["localhost:1337", 1338]) 146 sess = session.Session( 150 sess, "localhost:%d" % self._server_port, watch_fn="foo") 157 sess = session.Session( 159 sess.run(u.initializer) 160 sess.run(v.initializer) 162 sess = grpc_wrapper.GrpcDebugWrapperSession( [all …]
|
D | grpc_large_data_test.py | 64 config=session_debug_testlib.no_rewrite_session_config()) as sess: 68 sess.run(variables.global_variables_initializer()) 76 sess = grpc_wrapper.GrpcDebugWrapperSession( 77 sess, "localhost:%d" % self.debug_server_port, watch_fn=watch_fn) 78 self.assertAllClose(42.0, sess.run(u)) 94 config=session_debug_testlib.no_rewrite_session_config()) as sess: 107 sess = grpc_wrapper.GrpcDebugWrapperSession( 108 sess, "localhost:%d" % self.debug_server_port, watch_fn=watch_fn) 109 sess.run(u.initializer) 119 config=session_debug_testlib.no_rewrite_session_config()) as sess: [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | map_stage_op_test.py | 49 with self.session(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(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(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(graph=G) as sess: [all …]
|
D | stage_op_test.py | 46 with self.session(graph=G) as sess: 47 sess.run(stage, feed_dict={x: -1}) 49 _, yval = sess.run([stage, y], feed_dict={x: i}) 66 with self.session(graph=G) as sess: 67 sess.run(stage, feed_dict={x: -1}) 69 _, yval = sess.run([stage, y], feed_dict={x: i}) 92 with self.session(graph=G) as sess: 93 sess.run(stage, feed_dict={x: -1}) 95 _, yval = sess.run([stage, y], feed_dict={x: i}) 134 with self.session(graph=G) as sess: [all …]
|
/external/tensorflow/tensorflow/examples/speech_commands/ |
D | freeze_test.py | 34 with self.cached_session() as sess: 45 self.assertIsNotNone(sess.graph.get_tensor_by_name('wav_data:0')) 47 sess.graph.get_tensor_by_name('decoded_sample_data:0')) 48 self.assertIsNotNone(sess.graph.get_tensor_by_name('labels_softmax:0')) 49 ops = [node.op for node in sess.graph_def.node] 54 with self.cached_session() as sess: 65 self.assertIsNotNone(sess.graph.get_tensor_by_name('wav_data:0')) 67 sess.graph.get_tensor_by_name('decoded_sample_data:0')) 68 self.assertIsNotNone(sess.graph.get_tensor_by_name('labels_softmax:0')) 69 ops = [node.op for node in sess.graph_def.node] [all …]
|
/external/tensorflow/tensorflow/python/client/ |
D | session_partial_run_test.py | 37 def RunTestPartialRun(self, sess): argument 44 h = sess.partial_run_setup([r1, r2], [a, b, c]) 45 res = sess.partial_run(h, r1, feed_dict={a: 1, b: 2}) 48 res = sess.partial_run(h, r2, feed_dict={c: temp}) 52 h2 = sess.partial_run_setup([r1, r2], [a, b, c]) 53 res = sess.partial_run(h2, r1, feed_dict={a: 1, b: 2}) 56 res = sess.partial_run(h2, r2, feed_dict={c: temp}) 59 def RunTestPartialRunIncomplete(self, sess): argument 66 h = sess.partial_run_setup([r1, r2], [a, b, c]) 67 res = sess.partial_run(h, r1, feed_dict={a: 1, b: 2}) [all …]
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | variable_ops_test.py | 47 with self.session() as sess, self.test_scope(): 54 self.assertAllClose(zeros, sess.run(y, {p: zeros})) 61 with self.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.session() as sess, self.test_scope(): 77 sess.run(variables.variables_initializer([v])) 86 with self.session() as sess, self.test_scope(): 88 sess.run(variables.variables_initializer([v])) 98 with self.session() as sess, self.test_scope(): [all …]
|
/external/tensorflow/tensorflow/python/data/kernel_tests/ |
D | checkpoint_test.py | 93 with self.session(graph=g) as sess: 94 sess.run(variables.global_variables_initializer()) 95 sess.run(init_op) 97 self.assertEqual(i, sess.run(get_next)) 98 sess.run(save_op) 102 with self.session(graph=g) as sess: 103 sess.run(init_op) 104 sess.run(restore_op) 106 self.assertEqual(i, sess.run(get_next)) 108 sess.run(get_next) [all …]
|
D | iterator_test.py | 97 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) 157 with session.Session(server.target) as sess: 164 result = sess.run(get_next) 168 sess.run(get_next) 180 with session.Session(config=config) as sess: [all …]
|
/external/tensorflow/tensorflow/python/grappler/ |
D | layout_optimizer_test.py | 247 config=_get_config(layout_optimizer), graph=graph) as sess: 262 saver.restore(sess, checkpoint_path) 269 sess.run([loss, train_op], feed_dict={image: image_val}) 273 all_vars_values = [var.eval(session=sess) for var in all_vars] 276 saver.save(sess, checkpoint_path) 285 with session.Session(config=_get_config(False)) as sess: 288 with session.Session(config=_get_config()) as sess: 290 output_val = sess.run(output, run_metadata=metadata) 323 with session.Session(config=_get_config(False)) as sess: 324 output_val_ref = sess.run(output, feed_dict={dim: 3}) [all …]
|
/external/tensorflow/tensorflow/python/ops/ |
D | batch_ops_test.py | 59 with self.cached_session() as sess: 69 sess.run([batched, index], feed_dict={inp: [1]})) 73 main_results = sess.run([batched, index], feed_dict={inp: [2]}) 101 with self.cached_session() as sess: 112 sess.run([batched, index], feed_dict={inp: [1, 3]})) 116 main_results = sess.run([batched, index], feed_dict={inp: [2, 4]}) 133 with self.cached_session() as sess: 147 sess.run([batched], feed_dict={inp0: [1], 152 main_results = sess.run([batched], feed_dict={inp0: [2], inp1: [3]}) 174 with self.cached_session() as sess: [all …]
|
/external/tensorflow/tensorflow/python/tools/ |
D | saved_model_utils_test.py | 39 def _init_and_validate_variable(self, sess, variable_name, variable_value): argument 41 sess.run(variables.global_variables_initializer()) 48 with self.session(graph=ops.Graph()) as sess: 49 self._init_and_validate_variable(sess, "v", 42) 50 builder.add_meta_graph_and_variables(sess, [tag_constants.TRAINING]) 74 with self.session(graph=ops.Graph()) as sess: 75 self._init_and_validate_variable(sess, "v", 42) 76 builder.add_meta_graph_and_variables(sess, [tag_constants.TRAINING]) 81 with self.session(graph=ops.Graph()) as sess: 82 self._init_and_validate_variable(sess, "v", 43) [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/v1_compat_tests/ |
D | session_ops_test.py | 36 with self.cached_session() as sess: 47 self.assertEqual(500, sess.run(y, feed_dict={f: h.handle})) 51 with self.cached_session() as sess: 64 with self.cached_session() as sess: 78 with self.cached_session() as sess: 93 result = sess.run(y, feed_dict={f: h.handle}) 99 with self.cached_session() as sess: 111 h = sess.run(h_x, feed_dict={f: h.handle}) 117 with self.cached_session() as sess: 130 rp, h = sess.run([p, h_x], feed_dict={f: h.handle}) [all …]
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_eke.c | 29 struct eap_eke_session sess; member 104 eap_eke_session_clean(&data->sess); in eap_eke_reset() 253 if (eap_eke_derive_key(&data->sess, sm->user->password, in eap_eke_build_commit() 262 msg = eap_eke_build_msg(data, id, data->sess.dhcomp_len, in eap_eke_build_commit() 277 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) { in eap_eke_build_commit() 283 if (eap_eke_dhcomp(&data->sess, data->key, pub, in eap_eke_build_commit() 284 wpabuf_put(msg, data->sess.dhcomp_len)) in eap_eke_build_commit() 313 plen = data->sess.pnonce_ps_len + data->sess.prf_len; in eap_eke_build_confirm() 320 if (random_get_bytes(data->nonce_s, data->sess.nonce_len)) { in eap_eke_build_confirm() 326 data->nonce_s, data->sess.nonce_len); in eap_eke_build_confirm() [all …]
|