Home
last modified time | relevance | path

Searched refs:model_layers (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/python/keras/
Dtesting_utils.py539 def __init__(self, model_layers, *args, **kwargs): argument
553 for i, layer in enumerate(model_layers):
556 self.num_layers = len(model_layers)
581 model_layers = []
583 model_layers.append(layer)
584 self.all_layers = model_layers
593 def get_model_from_layers(model_layers, argument
622 return _SubclassModel(model_layers, name=name, input_tensor=inputs)
625 layer_generating_func = lambda: model_layers
637 for layer in model_layers:
[all …]
Dmodels_test.py59 model_layers = [keras.layers.InputLayer(input_shape=input_shape),
62 model_layers = [keras.layers.Dense(4, input_shape=input_shape)]
64 model_layers = [keras.layers.Dense(4)]
66 model_layers += [
71 return model_layers
75 model_layers = _get_layers(input_shape=None, add_input_layer=False)
77 model_layers, input_shape=input_shape)
Dmetrics_test.py2113 model_layers = [
2117 model = testing_utils.get_model_from_layers(model_layers, input_shape=(4,))
2272 model_layers = [layers.Dense(1, kernel_initializer='ones', use_bias=False)]
2273 model = testing_utils.get_model_from_layers(model_layers, input_shape=(4,))
/external/tensorflow/tensorflow/python/keras/engine/
Ddeferred_sequential_test.py132 model_layers = model._flatten_layers(include_self=True, recursive=False)
135 for layer1, layer2 in zip(model_layers, new_model_layers):
150 model_layers = model._flatten_layers(include_self=True, recursive=False)
153 for layer1, layer2 in zip(model_layers, new_model_layers):
Dbase_layer_test.py293 model_layers = [
297 model = testing_utils.get_model_from_layers(model_layers, input_shape=(4,))
/external/tensorflow/tensorflow/python/keras/saving/saved_model/
Drevive_test.py227 model_layers = {layer.name: layer for layer in model.layers}
229 self.assertAllEqual(model_layers.keys(), revived_layers.keys())
231 for name in model_layers:
232 model_layer = model_layers[name]
/external/tensorflow/tensorflow/python/keras/tests/
Dadd_loss_correctness_test.py271 model_layers = [
286 model_layers, input_shape=(10,))
/external/tensorflow/tensorflow/python/keras/saving/
Dhdf5_format.py124 model_layers = model.layers
125 save_weights_to_hdf5_group(model_weights_group, model_layers)