Home
last modified time | relevance | path

Searched refs:trainable_weights (Results 1 – 25 of 454) sorted by relevance

12345678910>>...19

/external/tensorflow/tensorflow/python/keras/distribute/
Dsharded_variable_test.py50 self.assertLen(layer.trainable_weights, 2)
51 self.assertEqual(layer.trainable_weights[0], [0])
52 self.assertEqual(layer.trainable_weights[1], [1])
57 layer.trainable_weights + layer.non_trainable_weights)
58 self.assertAllEqual(layer.trainable_weights, layer.trainable_variables)
94 self.assertLen(layer.trainable_weights, 2)
95 self.assertEqual(layer.trainable_weights[0], [0])
96 self.assertEqual(layer.trainable_weights[1], [1])
101 layer.trainable_weights + layer.non_trainable_weights)
102 self.assertAllEqual(layer.trainable_weights, layer.trainable_variables)
/external/tensorflow/tensorflow/python/keras/tests/
Dcustom_training_loop_test.py81 gradients = tape.gradient(loss, model.trainable_weights)
82 optimizer.apply_gradients(zip(gradients, model.trainable_weights))
104 gradients = tape.gradient(loss, model.trainable_weights)
105 optimizer.apply_gradients(zip(gradients, model.trainable_weights))
129 gradients = tape.gradient(loss, model.trainable_weights)
130 optimizer.apply_gradients(zip(gradients, model.trainable_weights))
Dmodel_subclassing_compiled_test.py131 self.assertEqual(len(model.trainable_weights), 8)
324 self.assertEqual(len(model.trainable_weights),
325 6 + len(model.test_net.trainable_weights))
348 self.assertEqual(len(model.trainable_weights),
349 6 + len(model.test_net.trainable_weights))
372 self.assertEqual(len(model.trainable_weights), 12)
406 self.assertEqual(len(model.trainable_weights), 6)
Dtracking_test.py113 self.assertTrue(any(model.layer_list[0].trainable_weights[0]
114 is t for t in model.trainable_weights))
119 self.assertIn(model.v, model.trainable_weights)
122 self.assertIn(model.v, model2.trainable_weights)
141 self.assertIn(layer.kernel, model2.trainable_weights)
293 self.assertEqual([], root.wrapper.trainable_weights)
300 self.assertEqual([], root.wrapper.trainable_weights)
453 self.assertIn(id(model.layer_list[0].trainable_weights[0]),
454 [id(obj) for obj in model.trainable_weights])
485 self.assertIn(layer.kernel, model2.trainable_weights)
Dadd_loss_correctness_test.py54 gradients = tape.gradient(loss, model.trainable_weights)
55 optimizer.apply_gradients(zip(gradients, model.trainable_weights))
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_eager_v1.py268 trainable_weights = model.trainable_weights
269 if trainable_weights:
275 grads = tape.gradient(scaled_total_loss, trainable_weights)
279 model.optimizer.apply_gradients(zip(grads, trainable_weights))
Dtraining_test.py777 self.assertLen(model.trainable_weights, 4)
2165 self.assertListEqual(model.trainable_weights, [])
2171 self.assertListEqual(model.trainable_weights, layer.trainable_weights)
2173 self.assertListEqual(model.trainable_weights, [])
2179 self.assertListEqual(model.trainable_weights, [])
2186 self.assertListEqual(model.trainable_weights, layer.trainable_weights)
2188 self.assertListEqual(model.trainable_weights, [])
2196 self.assertListEqual(model.trainable_weights, [])
2202 self.assertListEqual(model.trainable_weights, [])
2212 self.assertListEqual(outer_model.trainable_weights,
[all …]
Dsequential_test.py230 self.assertEqual(len(model.trainable_weights), 4)
232 self.assertEqual(len(model.trainable_weights), 2)
234 self.assertEqual(len(model.trainable_weights), 4)
Dfunctional_test.py279 self._assertAllIs(network.trainable_weights, dense.trainable_weights)
296 self.assertEqual(network.trainable_weights, [])
298 dense.trainable_weights + dense.non_trainable_weights)
307 self._assertAllIs(model.trainable_weights, weights)
311 self.assertListEqual(model.trainable_weights, [])
315 self._assertAllIs(model.trainable_weights, weights)
319 self.assertListEqual(model.trainable_weights, [])
327 self._assertAllIs(model.trainable_weights, weights)
331 self.assertListEqual(model.trainable_weights, [])
335 self._assertAllIs(model.trainable_weights, weights)
[all …]
/external/tensorflow/tensorflow/python/keras/saving/
Dhdf5_format.py298 trainable_weights = weights[:len(layer.trainable_weights)]
299 non_trainable_weights = weights[len(layer.trainable_weights):]
305 num_trainable_weights = len(sublayer.trainable_weights)
310 weights=(trainable_weights[:num_trainable_weights] +
317 trainable_weights = trainable_weights[num_trainable_weights:]
898 weights = layer.trainable_weights + layer.non_trainable_weights
/external/tensorflow/tensorflow/python/keras/premade/
Dwide_deep.py167 params=self.linear_model.trainable_weights, # pylint: disable=protected-access
171 params=self.dnn_model.trainable_weights, # pylint: disable=protected-access
/external/tensorflow/tensorflow/python/keras/layers/
Dcore_test.py298 self.assertLen(layer.trainable_weights, 0)
300 self.assertLen(layer.trainable_weights, 1)
309 self.assertLen(model.trainable_weights, 1)
310 self.assertAllClose(keras.backend.get_value(model.trainable_weights[0]), 2.)
Dcudnn_recurrent_test.py259 self.assertEqual(len(layer.trainable_weights), 3)
264 self.assertEqual(len(layer.trainable_weights), 0)
267 self.assertEqual(len(layer.trainable_weights), 3)
Dnormalization_test.py83 self.assertEqual(len(layer.trainable_weights), 0)
88 self.assertEqual(len(layer.trainable_weights), 2)
581 self.assertEqual(len(layer.trainable_weights), 0)
586 self.assertEqual(len(layer.trainable_weights), 2)
Dwrappers_test.py237 self.assertEqual(len(layer.trainable_weights), 2)
239 assert not layer.trainable_weights
241 assert len(layer.trainable_weights) == 2
841 assert len(layer.trainable_weights) == 6
843 assert not layer.trainable_weights
845 assert len(layer.trainable_weights) == 6
/external/tensorflow/tensorflow/python/keras/layers/legacy_rnn/
Drnn_cell_impl.py1297 def trainable_weights(self): member in MultiRNNCell
1303 weights += cell.trainable_weights
1313 trainable_weights = []
1316 trainable_weights += cell.trainable_weights
1317 return trainable_weights + weights
/external/tensorflow/tensorflow/python/keras/benchmarks/keras_examples_benchmarks/
Dmnist_conv_custom_training_benchmark_test.py84 grads = tape.gradient(loss, model.trainable_weights)
85 optimizer.apply_gradients(zip(grads, model.trainable_weights))
/external/tensorflow/tensorflow/python/training/tracking/
Ddata_structures.py219 def trainable_weights(self): member in TrackableDataStructure
262 return self.trainable_weights + self.non_trainable_weights
266 return self.trainable_weights
Ddata_structures_test.py84 self.assertEqual([v], l.trainable_weights)
94 self.assertEqual([v], l.trainable_weights)
529 self.assertEqual([v], l.trainable_weights)
/external/tensorflow/tensorflow/python/keras/utils/
Dlayer_utils.py269 trainable_count = count_params(model.trainable_weights)
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.keras.layers.-re-l-u.pbtxt111 name: "trainable_weights"
Dtensorflow.keras.layers.-masking.pbtxt111 name: "trainable_weights"
Dtensorflow.keras.layers.-thresholded-re-l-u.pbtxt111 name: "trainable_weights"
Dtensorflow.keras.layers.-cropping2-d.pbtxt111 name: "trainable_weights"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.keras.layers.-zero-padding2-d.pbtxt111 name: "trainable_weights"

12345678910>>...19