Home
last modified time | relevance | path

Searched refs:new_layer (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/python/keras/layers/
Dserialization_test.py53 new_layer = keras.layers.deserialize(config)
54 self.assertEqual(new_layer.activation, keras.activations.relu)
55 self.assertEqual(new_layer.bias_regularizer.__class__,
58 self.assertEqual(new_layer.kernel_initializer.__class__,
61 self.assertEqual(new_layer.kernel_initializer.__class__,
63 self.assertEqual(new_layer.units, 3)
87 new_layer = keras.layers.deserialize(
89 self.assertEqual(new_layer.activation, keras.activations.relu)
90 self.assertEqual(new_layer.bias_regularizer.__class__,
93 self.assertEqual(new_layer.kernel_initializer.__class__,
[all …]
Ddense_attention_test.py167 new_layer = keras.layers.deserialize(config)
168 self.assertEqual(new_layer.causal, True)
171 new_layer = dense_attention.BaseDenseAttention.from_config(config)
172 self.assertEqual(new_layer.causal, True)
516 new_layer = keras.layers.deserialize(config)
517 self.assertEqual(new_layer.use_scale, use_scale)
520 new_layer = dense_attention.Attention.from_config(config)
521 self.assertEqual(new_layer.use_scale, use_scale)
757 new_layer = keras.layers.deserialize(config)
758 self.assertEqual(new_layer.use_scale, True)
[all …]
Dgru_v2_test.py236 cloned_model, new_layer = build_model()
241 self.assertAllClose(layer.get_weights(), new_layer.get_weights())
Dlstm_v2_test.py537 cloned_model, new_layer = build_model()
542 self.assertAllClose(layer.get_weights(), new_layer.get_weights())
/external/tensorflow/tensorflow/python/keras/utils/
Dgeneric_utils_test.py212 new_layer = keras.layers.deserialize(
214 self.assertEqual(new_layer.activation, keras.activations.relu)
215 self.assertEqual(new_layer.bias_regularizer.__class__,
217 self.assertEqual(new_layer.units.__class__, SerializableInt)
218 self.assertEqual(new_layer.units, 3)
257 new_layer = keras.layers.deserialize(
265 self.assertEqual(new_layer.name, 'SerializableNestedInt')
266 self.assertEqual(new_layer.activation, keras.activations.relu)
267 self.assertEqual(new_layer.bias_regularizer.__class__,
269 self.assertEqual(new_layer.units.__class__, SerializableNestedInt)
[all …]
/external/tensorflow/tensorflow/python/keras/feature_column/
Ddense_features_test.py1055 new_layer = df.DenseFeatures.from_config(config)
1057 self.assertEqual(new_layer.name, orig_layer.name)
1058 self.assertEqual(new_layer.trainable, trainable)
1059 self.assertLen(new_layer._feature_columns, 3)
1060 self.assertEqual(new_layer._feature_columns[0].name, 'a')
1061 self.assertEqual(new_layer._feature_columns[1].initializer.mean, 0.0)
1062 self.assertEqual(new_layer._feature_columns[1].categorical_column.name, 'b')
1063 self.assertIsInstance(new_layer._feature_columns[0], cols[0].__class__)
1064 self.assertIsInstance(new_layer._feature_columns[1], cols[1].__class__)
1065 self.assertIsInstance(new_layer._feature_columns[2], cols[2].__class__)
[all …]
Dsequence_feature_column_test.py598 new_layer = ksfc.SequenceFeatures.from_config(config)
600 self.assertEqual(new_layer.name, orig_layer.name)
601 self.assertEqual(new_layer.trainable, trainable)
602 self.assertLen(new_layer._feature_columns, 1)
603 self.assertEqual(new_layer._feature_columns[0].name, 'a')
/external/tensorflow/tensorflow/python/keras/
Dmodels.py101 new_layer = layer_fn(layer)
102 layer_map[layer] = new_layer
103 layer = new_layer
/external/tensorflow/tensorflow/python/keras/engine/
Dbase_layer_test.py244 new_layer = copy.deepcopy(layer)
245 self.assertEqual(new_layer.bias_regularizer, bias_reg)
246 self.assertEqual(layer.get_config(), new_layer.get_config())
/external/webrtc/video/
Dvideo_send_stream_tests.cc3321 bool new_layer = vp9.spatial_idx != last_vp9_.spatial_idx; in VerifySpatialIdxWithinFrame() local
3322 EXPECT_EQ(new_layer, vp9.beginning_of_frame); in VerifySpatialIdxWithinFrame()
3323 EXPECT_EQ(new_layer, last_vp9_.end_of_frame); in VerifySpatialIdxWithinFrame()
3324 EXPECT_EQ(new_layer ? last_vp9_.spatial_idx + 1 : last_vp9_.spatial_idx, in VerifySpatialIdxWithinFrame()