Home
last modified time | relevance | path

Searched refs:train_op (Results 1 – 25 of 55) sorted by relevance

123

/external/tensorflow/tensorflow/python/training/
Dbasic_session_run_hooks_test.py249 train_op = constant_op.constant(3)
257 mon_sess.run(train_op)
267 train_op = constant_op.constant(3)
273 mon_sess.run(train_op)
278 mon_sess.run(train_op)
281 mon_sess.run(train_op)
286 mon_sess.run(train_op)
314 train_op = constant_op.constant(3)
320 mon_sess.run(train_op)
327 train_op = constant_op.constant(3)
[all …]
Dsync_replicas_optimizer_test.py65 train_op = [
82 train_ops.append(train_op)
89 def _run(self, train_op, sess): argument
90 sess.run(train_op)
Doptimizer.py644 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
645 if apply_updates not in train_op:
646 train_op.append(apply_updates)
739 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
740 if apply_updates not in train_op:
741 train_op.append(apply_updates)
/external/tensorflow/tensorflow/python/grappler/
Ddatasets_test.py53 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
54 train_op.append(get_next)
78 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
79 train_op.append(get_next)
114 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
115 train_op.append(get_next)
127 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
128 train_op.append(get_next)
154 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
155 train_op.append(get_next)
[all …]
Dcluster_test.py39 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
40 train_op.append(c)
56 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
57 train_op.append(c)
74 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
75 train_op.append(c)
94 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
95 train_op.append(c)
121 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
122 train_op.append(c)
[all …]
Ditem_test.py55 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
56 train_op.append(c)
68 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
69 train_op.append(c)
90 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
91 train_op.append(c)
118 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
119 train_op.append(a)
Dmemory_optimizer_test.py48 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
49 train_op.append(d)
74 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
75 train_op.append(d)
131 train_op = optimizer.minimize(loss)
134 return (metagraph, init_op.name, train_op.name, loss.name)
236 train_op = graph.get_operation_by_name(train_op_name)
240 self.evaluate(train_op)
241 self.evaluate(train_op)
288 train_op = optimizer.minimize(loss)
[all …]
Dmodel_analyzer_test.py39 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
40 train_op.append(d)
60 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
61 train_op.append(c)
Dcost_analyzer_test.py48 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
49 train_op.append(d)
73 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
74 train_op.append(d)
143 train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
144 train_op.append(d)
/external/tensorflow/tensorflow/python/saved_model/
Dbuilder_impl.py236 train_op=None, argument
281 _add_op_to_signature_def_map(signature_def_map, train_op,
309 train_op=None, argument
359 _add_op_to_signature_def_map(signature_def_map, train_op,
439 def _add_collections(self, assets_collection, main_op, train_op): argument
446 self._add_train_op(train_op)
494 def _add_train_op(self, train_op): argument
507 if train_op is not None:
508 if (not isinstance(train_op, ops.Tensor) and
509 not isinstance(train_op, ops.Operation)):
[all …]
Dloader_impl.py216 train_op = _get_op_from_signature_def(
218 if train_op is None:
219 train_op = _get_op_from_collection(meta_graph_def, constants.TRAIN_OP_KEY)
220 return train_op
/external/tensorflow/tensorflow/core/grappler/
Dgrappler_item_builder_test.cc181 CollectionDef train_op; in TEST_F() local
182 train_op.mutable_node_list()->add_value("y"); in TEST_F()
183 (*meta_graph.mutable_collection_def())["train_op"] = train_op; in TEST_F()
201 CollectionDef train_op; in TEST_F() local
202 train_op.mutable_node_list()->add_value("y"); in TEST_F()
203 (*meta_graph.mutable_collection_def())["train_op"] = train_op; in TEST_F()
258 CollectionDef train_op; in TEST_F() local
259 train_op.mutable_node_list()->add_value("y"); in TEST_F()
260 (*meta_graph.mutable_collection_def())["train_op"] = train_op; in TEST_F()
354 key: "train_op" in TEST_F()
[all …]
/external/tensorflow/tensorflow/python/training/tracking/
Dutil_with_v1_optimizers_test.py52 train_op = optimizer.minimize(root.var)
58 self.evaluate(train_op)
94 train_op = new_root.optimizer.minimize(new_root.var)
100 self.evaluate(train_op)
150 train_op = optimizer.minimize(first_variable.read_value)
153 self.evaluate(train_op)
166 train_op = optimizer.minimize(second_variable.read_value)
168 self.evaluate(train_op)
/external/tensorflow/tensorflow/python/keras/distribute/
Dkeras_optimizer_v2_test.py68 train_op = optimizer.minimize(loss_fn, var_list=[var])
70 return train_op, optimizer
73 train_op, optimizer = distribution.extended.call_for_each_replica(
79 return distribution.group(train_op)
/external/tensorflow/tensorflow/core/grappler/inputs/
Dfile_input_yielder.cc106 for (const auto& train_op : train_ops) { in NextItem() local
107 if (train_ops_found.find(train_op) != train_ops_found.end()) { in NextItem()
108 LOG(ERROR) << "Non existent train op specified: " << train_op; in NextItem()
/external/tensorflow/tensorflow/python/distribute/
Ddistribute_utils_test.py203 def __new__(cls, mode, loss, train_op, scaffold=None): argument
205 cls, mode=mode, loss=loss, train_op=train_op,
215 train_op=array_ops.identity(constant_op.constant(device_id)))
226 self.assertEqual(created_estimator_specs[device_id].train_op,
227 merged_estimator_spec.train_op.values[device_id])
Dzero_batch_test.py69 train_op = optimizer.minimize(loss)
70 with ops.control_dependencies([train_op]):
73 train_op = distribution.extended.call_for_each_replica(
92 np_output, _, _ = sess.run([train_op] + bn.updates, {
/external/tensorflow/tensorflow/python/keras/integration_test/
Dlegacy_rnn_test.py78 train_op = tf.train.GradientDescentOptimizer(0.001).minimize(loss)
82 [train_op, outputs, state], {inputs: x_train, predict: y_train})
111 train_op = tf.train.GradientDescentOptimizer(0.001).minimize(loss)
115 [train_op, outputs, state], {inputs: x_train, predict: y_train})
146 train_op = tf.train.GradientDescentOptimizer(0.001).minimize(loss)
150 [train_op, outputs, state], {inputs: x_train, predict: y_train})
189 train_op = tf.train.GradientDescentOptimizer(0.001).minimize(loss)
193 [train_op, outputs, state], {inputs: x_train, predict: y_train})
226 train_op = tf.train.GradientDescentOptimizer(0.001).minimize(loss)
232 [train_op, outputs, state], feed_dict)
/external/tensorflow/tensorflow/python/eager/benchmarks/resnet50/
Dresnet50_graph_test.py115 train_op = optimizer.minimize(loss)
122 sess.run(train_op)
125 sess.run(train_op)
/external/tensorflow/tensorflow/core/platform/
Dram_file_system_test.py110 train_op = opt.minimize(
113 return EstimatorSpec(mode=mode, loss=loss, train_op=train_op)
/external/tensorflow/tensorflow/python/keras/saving/
Dsaved_model_experimental.py284 train_op = None
287 train_op = clone.train_function.updates_op
326 train_op=train_op)
/external/tensorflow/tensorflow/python/keras/tests/
Dtracking_util_with_v1_optimizers_test.py94 train_op = optimizer.minimize(
101 self.evaluate(train_op)
195 train_op = optimizer.minimize(model(input_value))
200 self.evaluate(train_op)
333 train_op = strategy.extended.call_for_each_replica(
340 session.run(train_op)
359 train_op = optimizer.minimize(
377 session.run(train_op)
580 train_op = optimizer.minimize(
585 self.evaluate(train_op)
Dtracking_util_test.py120 train_op = control_flow_ops.group(
132 self.evaluate(train_op)
210 train_op = optimizer.apply_gradients(zip(gradients, variables))
214 self.evaluate(train_op)
309 train_op = optimizer.apply_gradients(zip(gradients, variables))
326 session.run(train_op)
476 train_op = optimizer.apply_gradients(zip(gradients, variables))
482 self.evaluate(train_op)
520 train_op = new_root.optimizer.apply_gradients(zip(gradients, variables))
530 self.evaluate(train_op)
[all …]
/external/tensorflow/tensorflow/python/tpu/
Dasync_checkpoint_test.py75 train_op = optimizer.minimize(loss, training.get_global_step())
79 train_op=train_op,
/external/tensorflow/tensorflow/python/compiler/tensorrt/test/
Dquantization_mnist_test.py235 train_op = optimizer.minimize(loss, global_step=get_global_step())
236 return EstimatorSpec(mode, loss=loss, train_op=train_op)

123