Home
last modified time | relevance | path

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

12345678910>>...16

/external/tensorflow/tensorflow/contrib/eager/python/
Dnetwork_test.py474 self.assertIsInstance(net.trainable_weights[0],
553 actual=net1.trainable_weights[0].name)
557 actual=net2.trainable_weights[0].name)
562 actual=net3.trainable_weights[0].name)
568 actual=outside_net_before.trainable_weights[0].name)
572 actual=outside_net_after.trainable_weights[0].name)
584 actual=net.trainable_weights[0].name)
615 actual=net.trainable_weights[0].name)
671 self.evaluate(net1.trainable_weights[0].assign([[1.]]))
672 self.evaluate(net2.trainable_weights[0].assign([[2.]]))
[all …]
Dnetwork.py463 def trainable_weights(self): member in Network
466 weights += layer.trainable_weights
/external/tensorflow/tensorflow/python/training/tracking/
Dlayer_utils.py76 weights += layer.trainable_weights
106 trainable_weights = []
108 trainable_weights += layer.trainable_weights
109 return (trainable_weights + trainable_extra_variables
Ddata_structures.py176 def trainable_weights(self): member in TrackableDataStructure
191 return self.trainable_weights + self.non_trainable_weights
195 return self.trainable_weights
Ddata_structures_test.py197 self.assertEqual([v], l.trainable_weights)
207 self.assertEqual([v], l.trainable_weights)
472 self.assertEqual([], root.wrapper.trainable_weights)
479 self.assertEqual([], root.wrapper.trainable_weights)
/external/tensorflow/tensorflow/python/keras/utils/
Dlayer_utils.py234 trainable_count = count_params(model.trainable_weights)
261 weights += layer.trainable_weights
291 trainable_weights = []
293 trainable_weights += layer.trainable_weights
294 return (trainable_weights + trainable_extra_variables
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_eager.py221 if not model.trainable_weights:
226 grads = tape.gradient(total_loss, model.trainable_weights)
228 model.trainable_weights))
Dtraining_test.py1586 self.assertListEqual(model.trainable_weights, [])
1592 self.assertListEqual(model.trainable_weights, layer.trainable_weights)
1594 self.assertListEqual(model.trainable_weights, [])
1600 self.assertListEqual(model.trainable_weights, [])
1607 self.assertListEqual(model.trainable_weights, layer.trainable_weights)
1609 self.assertListEqual(model.trainable_weights, [])
1618 self.assertListEqual(model.trainable_weights, [])
1624 self.assertListEqual(model.trainable_weights, [])
1635 self.assertListEqual(outer_model.trainable_weights,
1636 inner_model.trainable_weights)
[all …]
Dtopology_test.py290 self.assertEqual(network.trainable_weights, dense.trainable_weights)
306 self.assertEqual(network.trainable_weights, [])
308 dense.trainable_weights + dense.non_trainable_weights)
317 self.assertListEqual(model.trainable_weights, weights)
321 self.assertListEqual(model.trainable_weights, [])
325 self.assertListEqual(model.trainable_weights, weights)
329 self.assertListEqual(model.trainable_weights, [])
337 self.assertListEqual(model.trainable_weights, weights)
341 self.assertListEqual(model.trainable_weights, [])
345 self.assertListEqual(model.trainable_weights, weights)
[all …]
Dsequential_test.py238 self.assertEqual(len(model.trainable_weights), 4)
240 self.assertEqual(len(model.trainable_weights), 2)
242 self.assertEqual(len(model.trainable_weights), 4)
Dbase_layer_test.py492 self.assertEqual(len(layer.trainable_weights), 5)
497 self.assertEqual(len(layer.trainable_weights), 3)
502 self.assertEqual(len(layer.trainable_weights), 0)
565 self.assertEqual([], l.trainable_weights)
Dtraining.py355 self._collected_trainable_weights = self.trainable_weights
451 trainable_weights = self.trainable_weights
452 self._collected_trainable_weights = trainable_weights
2066 if len(self.trainable_weights) != len(self._collected_trainable_weights):
/external/tensorflow/tensorflow/python/keras/layers/
Dcore_test.py204 self.assertLen(layer.trainable_weights, 1)
205 self.assertEqual(layer.trainable_weights[0].name, 'lambda/multiplier:0')
227 self.assertLen(model.trainable_weights, 1)
228 self.assertAllClose(keras.backend.get_value(model.trainable_weights[0]), 2.)
Dwrappers_test.py187 self.assertEqual(len(layer.trainable_weights), 2)
190 assert not layer.trainable_weights
193 assert len(layer.trainable_weights) == 2
537 assert len(layer.trainable_weights) == 6
539 assert not layer.trainable_weights
541 assert len(layer.trainable_weights) == 6
Dnormalization_test.py68 self.assertEqual(len(layer.trainable_weights), 0)
73 self.assertEqual(len(layer.trainable_weights), 2)
435 self.assertEqual(len(layer.trainable_weights), 0)
440 self.assertEqual(len(layer.trainable_weights), 2)
Dcudnn_recurrent_test.py253 self.assertEqual(len(layer.trainable_weights), 3)
258 self.assertEqual(len(layer.trainable_weights), 0)
261 self.assertEqual(len(layer.trainable_weights), 3)
/external/tensorflow/tensorflow/python/keras/
Dmodel_subclassing_test.py533 self.assertEqual(1, len(model.trainable_weights))
549 self.assertEqual(1, len(model.trainable_weights))
675 self.assertEqual(len(model.trainable_weights), 8)
864 self.assertEqual(len(model.trainable_weights),
865 6 + len(model.test_net.trainable_weights))
888 self.assertEqual(len(model.trainable_weights),
889 6 + len(model.test_net.trainable_weights))
911 self.assertEqual(len(model.trainable_weights), 12)
945 self.assertEqual(len(model.trainable_weights), 6)
/external/tensorflow/tensorflow/python/ops/
Drnn_cell_impl.py1659 def trainable_weights(self): member in MultiRNNCell
1665 weights += cell.trainable_weights
1675 trainable_weights = []
1678 trainable_weights += cell.trainable_weights
1679 return trainable_weights + weights
/external/tensorflow/tensorflow/contrib/checkpoint/python/
Dcontainers_test.py106 self.assertEqual(2, len(tracker.trainable_weights))
/external/tensorflow/tensorflow/python/keras/saving/
Dhdf5_format.py347 num_weights = len(sublayer.trainable_weights)
359 if l not in sublayer.trainable_weights])
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.keras.layers.-max-pooling3-d.pbtxt73 name: "trainable_weights"
Dtensorflow.keras.layers.-zero-padding2-d.pbtxt72 name: "trainable_weights"
Dtensorflow.keras.layers.-activation.pbtxt72 name: "trainable_weights"
Dtensorflow.keras.layers.-gaussian-noise.pbtxt72 name: "trainable_weights"
Dtensorflow.keras.layers.-max-pooling2-d.pbtxt73 name: "trainable_weights"

12345678910>>...16