Home
last modified time | relevance | path

Searched refs:layer (Results 1 – 25 of 1542) sorted by relevance

12345678910>>...62

/external/tensorflow/tensorflow/python/keras/legacy_tf_layers/
Dbase_test.py51 layer = base_layers.Layer(name='my_layer')
52 self.assertEqual(layer.variables, [])
53 self.assertEqual(layer.trainable_variables, [])
54 self.assertEqual(layer.non_trainable_variables, [])
57 self.assertEqual(layer.updates, [])
58 self.assertEqual(layer.losses, [])
59 self.assertEqual(layer.built, False)
60 layer = base_layers.Layer(name='my_layer', trainable=False)
61 self.assertEqual(layer.trainable, False)
64 self.assertFalse(layer._instrumented_keras_api)
[all …]
Dconvolutional_test.py66 layer = conv_layers.Conv2D(32, [3, 3], activation=nn_ops.relu)
67 output = layer.apply(images)
72 self.assertListEqual(layer.kernel.get_shape().as_list(), [3, 3, 4, 32])
73 self.assertListEqual(layer.bias.get_shape().as_list(), [32])
85 layer = conv_layers.Conv2D(32, 3)
86 output = layer.apply(images)
89 self.assertListEqual(layer.kernel.get_shape().as_list(), [3, 3, 4, 32])
90 self.assertListEqual(layer.bias.get_shape().as_list(), [32])
96 layer = conv_layers.Conv2D(32, [3, 3], data_format='channels_first')
97 output = layer.apply(images)
[all …]
Dpooling_test.py57 layer = pooling_layers.MaxPooling2D([2, 2], strides=2)
58 output = layer.apply(images)
64 layer = pooling_layers.AveragePooling2D([2, 2], strides=2)
65 output = layer.apply(images)
72 layer = pooling_layers.MaxPooling2D([2, 2],
75 output = layer.apply(images)
82 layer = pooling_layers.AveragePooling2D((2, 2),
86 output = layer.apply(images)
94 layer = pooling_layers.AveragePooling2D((2, 2),
98 output = layer.apply(images)
[all …]
/external/tensorflow/tensorflow/python/keras/saving/saved_model/
Dsave_impl.py71 def should_skip_serialization(layer): argument
73 saved_model_input_spec_set = (isinstance(layer, training_lib.Model) and
74layer._saved_model_inputs_spec is not None) # pylint: disable=protected-access
75 if not layer.built and not saved_model_input_spec_set:
77 'it is not built.'.format(layer))
82 def wrap_layer_objects(layer, serialization_cache): argument
98 all_losses = layer._callable_losses[:] # pylint: disable=protected-access
99 for child_layer in utils.list_all_layers(layer):
113 for fn in layer._callable_losses[:]] # pylint: disable=protected-access
116 {m.name: m for m in layer._metrics}) # pylint: disable=protected-access
[all …]
/external/tensorflow/tensorflow/python/keras/distribute/
Dsharded_variable_test.py48 layer = Layer()
50 self.assertLen(layer.trainable_weights, 2)
51 self.assertEqual(layer.trainable_weights[0], [0])
52 self.assertEqual(layer.trainable_weights[1], [1])
53 self.assertLen(layer.non_trainable_weights, 2)
54 self.assertEqual(layer.non_trainable_weights[0], [2])
55 self.assertEqual(layer.non_trainable_weights[1], [3])
56 self.assertAllEqual(layer.weights,
57 layer.trainable_weights + layer.non_trainable_weights)
58 self.assertAllEqual(layer.trainable_weights, layer.trainable_variables)
[all …]
/external/tensorflow/tensorflow/python/keras/utils/
Dvis_utils.py57 def is_wrapped_model(layer): argument
60 return (isinstance(layer, wrappers.Wrapper) and
61 isinstance(layer.layer, functional.Functional))
146 for i, layer in enumerate(layers):
147 layer_id = str(id(layer))
150 layer_name = layer.name
151 class_name = layer.__class__.__name__
153 if isinstance(layer, wrappers.Wrapper):
154 if expand_nested and isinstance(layer.layer,
157 layer.layer,
[all …]
/external/libaom/libaom/av1/encoder/
Dml.c40 for (int layer = 0; layer < num_layers; ++layer) { in av1_nn_predict_c() local
41 const float *layer_weights = nn_config->weights[layer]; in av1_nn_predict_c()
42 const float *layer_bias = nn_config->bias[layer]; in av1_nn_predict_c()
44 const int num_output_nodes = nn_config->num_hidden_nodes[layer]; in av1_nn_predict_c()
74 static float *nn_relu(const float *input, FC_LAYER *layer) { in nn_relu() argument
75 for (int i = 0; i < layer->num_outputs; ++i) { in nn_relu()
76 layer->output[i] = AOMMAX(input[i], 0.0f); in nn_relu()
79 return layer->output; in nn_relu()
84 static float *nn_sigmoid(const float *input, FC_LAYER *layer) { in nn_sigmoid() argument
85 for (int i = 0; i < layer->num_outputs; ++i) { in nn_sigmoid()
[all …]
/external/tensorflow/tensorflow/python/keras/engine/
Dbase_preprocessing_layer_test.py142 layer = get_layer()
145 layer.adapt(input_dataset)
148 layer.adapt(input_dataset)
155 layer = get_layer()
158 layer.adapt(input_dataset)
162 layer.adapt(input_dataset)
168 layer = get_layer()
169 combiner = layer._combiner
173 layer._set_state_variables(updates)
178 layer = get_layer()
[all …]
Dfunctional.py190 layer, node_index, tensor_index = x._keras_history # pylint: disable=protected-access
191 self._output_layers.append(layer)
192 self._output_coordinates.append((layer, node_index, tensor_index))
196 layer, node_index, tensor_index = x._keras_history # pylint: disable=protected-access
201 self._input_layers.append(layer)
202 self._input_coordinates.append((layer, node_index, tensor_index))
211 for layer in self._self_tracked_trackables:
212 self._layer_call_argspecs[layer] = tf_inspect.getfullargspec(layer.call)
220 for layer in self._input_layers:
221 self.input_names.append(layer.name)
[all …]
Dbase_layer_test.py91 layer = layers.Add()
92 self.assertTrue(layer._instrumented_keras_api)
93 self.assertTrue(layer._instrumented_keras_layer_class)
94 self.assertFalse(layer._instrumented_keras_model_class)
152 layer = BuildCounter(dtype=dtypes.float64)
153 output_shape = layer.compute_output_shape((None, 10))
154 self.assertEqual(layer.build_counter, 1)
155 self.assertEqual(layer.build_shape.as_list(), [None, 10])
157 output_signature = layer.compute_output_signature(
159 self.assertEqual(layer.build_counter, 1)
[all …]
Dsequential.py144 for layer in layers:
145 self.add(layer)
160 def add(self, layer): argument
177 if hasattr(layer, '_keras_history'):
178 origin_layer = layer._keras_history[0]
180 layer = origin_layer
186 if isinstance(layer, module.Module):
187 if not isinstance(layer, base_layer.Layer):
188 layer = functional.ModuleWrapper(layer)
192 'Found: ' + str(layer))
[all …]
/external/skqp/tests/
DGpuLayerCacheTest.cpp38 static int Uses(GrCachedLayer* layer) {
39 return layer->uses();
57 GrCachedLayer* layer = cache->findLayerOrCreate(picture.uniqueID(),
64 REPORTER_ASSERT(reporter, layer);
67 REPORTER_ASSERT(reporter, temp == layer);
71 REPORTER_ASSERT(reporter, picture.uniqueID() == layer->pictureID());
72 REPORTER_ASSERT(reporter, layer->start() == idOffset + i + 1);
73 REPORTER_ASSERT(reporter, layer->stop() == idOffset + i + 2);
74 REPORTER_ASSERT(reporter, !layer->texture());
75 REPORTER_ASSERT(reporter, !layer->paint());
[all …]
/external/tensorflow/tensorflow/python/keras/mixed_precision/
Dkeras_test.py138 layer = mp_test_util.MultiplyLayer(assert_type=dtype)
139 self.assertEqual(layer.dtype, dtypes.float32)
140 self.assertEqual(get_layer_policy.get_layer_policy(layer).name,
142 y = layer(x)
143 self.assertEqual(layer.v.dtype, dtypes.float32)
145 self.assertEqual(layer.dtype_policy.name, policy_name)
146 self.assertIsInstance(layer.dtype_policy, policy.Policy)
147 self.assertEqual(layer.compute_dtype, dtype)
148 self.assertEqual(layer.dtype, dtypes.float32)
149 self.assertEqual(layer.variable_dtype, dtypes.float32)
[all …]
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/
Dtext_vectorization_test.py331 layer = get_layer_class()()
332 layer.adapt(vocab_data)
333 out = layer(input_data)
336 layer.set_vocabulary(["two", "three", "four", "five"])
337 out = layer(input_data)
345 layer = get_layer_class()()
346 layer.adapt(vocab_data)
347 out = layer(input_data)
350 layer.set_vocabulary(["two", "three", "four", "five"])
351 out = layer(input_data)
[all …]
Dindex_lookup_test.py389 layer = get_layer_class()(
395 layer.set_vocabulary(vocab_data)
396 int_data = layer(input_data)
415 layer = get_layer_class()(
421 layer.set_vocabulary(vocab_data)
422 int_data = layer(input_data)
436 layer = get_layer_class()(
442 layer.set_vocabulary(vocab_data)
443 int_data = layer(input_data)
455 layer = get_layer_class()(
[all …]
Dinteger_lookup_test.py152 layer = get_layer_class()(max_values=None)
153 layer.set_vocabulary(vocab_data)
154 int_data = layer(input_data)
168 layer = get_layer_class()(max_values=None)
169 layer.set_vocabulary(vocab_data)
170 int_data = layer(input_data)
193 layer = get_layer_class()(
199 layer.set_vocabulary(vocab_data)
200 int_data = layer(input_data)
214 layer = get_layer_class()(max_values=None, num_oov_indices=2)
[all …]
Dhashing_test.py41 layer = hashing.Hashing(num_bins=1)
43 output = layer(inp)
47 layer = hashing.Hashing(num_bins=2)
50 output = layer(inp)
68 layer = hashing.Hashing(num_bins=2)
70 output = layer(inp)
75 output = layer(inp)
80 layer = hashing.Hashing(num_bins=3)
82 output = layer(inp)
87 layer = hashing.Hashing(num_bins=2, salt=[133, 137])
[all …]
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_compositor.c282 default_rect(struct vl_compositor_layer *layer) in default_rect() argument
284 struct pipe_resource *res = layer->sampler_views[0]->texture; in default_rect()
304 calc_src_and_dst(struct vl_compositor_layer *layer, unsigned width, unsigned height, in calc_src_and_dst() argument
309 layer->src.tl = calc_topleft(size, src); in calc_src_and_dst()
310 layer->src.br = calc_bottomright(size, src); in calc_src_and_dst()
311 layer->dst.tl = calc_topleft(size, dst); in calc_src_and_dst()
312 layer->dst.br = calc_bottomright(size, dst); in calc_src_and_dst()
313 layer->zw.x = 0.0f; in calc_src_and_dst()
314 layer->zw.y = size.y; in calc_src_and_dst()
319 unsigned layer, struct pipe_video_buffer *buffer, in set_yuv_layer() argument
[all …]
Dvl_compositor_gfx.c471 gen_rect_verts(struct vertex2f *vb, struct vl_compositor_layer *layer) in gen_rect_verts() argument
475 assert(vb && layer); in gen_rect_verts()
477 switch (layer->rotate) { in gen_rect_verts()
480 tl = layer->dst.tl; in gen_rect_verts()
481 tr.x = layer->dst.br.x; in gen_rect_verts()
482 tr.y = layer->dst.tl.y; in gen_rect_verts()
483 br = layer->dst.br; in gen_rect_verts()
484 bl.x = layer->dst.tl.x; in gen_rect_verts()
485 bl.y = layer->dst.br.y; in gen_rect_verts()
488 tl.x = layer->dst.br.x; in gen_rect_verts()
[all …]
/external/skia/tools/sk_app/
DWindow.cpp40 this->visitLayers([](Layer* layer) { layer->onBackendCreated(); }); in onBackendCreated() argument
44 return this->signalLayers([=](Layer* layer) { return layer->onChar(c, modifiers); }); in onChar() argument
48 return this->signalLayers([=](Layer* layer) { return layer->onKey(key, state, modifiers); }); in onKey() argument
52 return this->signalLayers([=](Layer* layer) { return layer->onMouse(x, y, state, modifiers); }); in onMouse() argument
56 return this->signalLayers([=](Layer* layer) { return layer->onMouseWheel(delta, modifiers); }); in onMouseWheel() argument
60 return this->signalLayers([=](Layer* layer) { return layer->onTouch(owner, state, x, y); }); in onTouch() argument
64 return this->signalLayers([=](Layer* layer) { return layer->onFling(state); }); in onFling() argument
68 return this->signalLayers([=](Layer* layer) { return layer->onPinch(state, scale, x, y); }); in onPinch() argument
72 this->visitLayers([=](Layer* layer) { layer->onUIStateChanged(stateName, stateValue); }); in onUIStateChanged() argument
92 this->visitLayers([](Layer* layer) { layer->onPrePaint(); }); in onPaint() argument
[all …]
/external/tensorflow/tensorflow/python/keras/saving/
Dhdf5_format.py231 def preprocess_weights_for_loading(layer, argument
264 layer.forward_layer, weights[:num_weights_per_layer],
267 layer.backward_layer, weights[num_weights_per_layer:],
284 layer.layer, weights, original_keras_version, original_backend)
298 trainable_weights = weights[:len(layer.trainable_weights)]
299 non_trainable_weights = weights[len(layer.trainable_weights):]
304 for sublayer in layer.layers:
309 layer=sublayer,
326 if layer.__class__.__name__ == 'Bidirectional':
328 if layer.__class__.__name__ == 'TimeDistributed':
[all …]
/external/tensorflow/tensorflow/python/keras/
Dmodels.py56 def share_weights(layer): argument
57 return layer
60 def _clone_layer(layer): argument
61 return layer.__class__.from_config(layer.get_config())
68 layer for layer in ancillary_layers if isinstance(layer, AddMetric)
70 metric_layers.sort(key=lambda layer: metrics_names.index(layer.metric_name))
72 layer for layer in ancillary_layers if not isinstance(layer, AddMetric)
97 layer = node.outbound_layer
100 if layer not in layer_map:
101 new_layer = layer_fn(layer)
[all …]
/external/walt/hardware/kicad/
DWALTsm.kicad_pcb204 (module Capacitors_SMD:C_0805 (layer F.Cu) (tedit 58B4C36B) (tstamp 5766179B)
210 (fp_text reference C1 (at -2.667 0.42) (layer F.SilkS)
213 (fp_text value 0.1uF (at 0.381 0) (layer F.Fab)
216 (fp_line (start -1.8 -1) (end 1.8 -1) (layer F.CrtYd) (width 0.05))
217 (fp_line (start -1.8 1) (end 1.8 1) (layer F.CrtYd) (width 0.05))
218 (fp_line (start -1.8 -1) (end -1.8 1) (layer F.CrtYd) (width 0.05))
219 (fp_line (start 1.8 -1) (end 1.8 1) (layer F.CrtYd) (width 0.05))
220 (fp_line (start 0.5 -0.85) (end -0.5 -0.85) (layer F.SilkS) (width 0.15))
221 (fp_line (start -0.5 0.85) (end 0.5 0.85) (layer F.SilkS) (width 0.15))
233 (module walt_footprints:R_0603_pad07mm_long (layer F.Cu) (tedit 57B60F33) (tstamp 576617B3)
[all …]
/external/skqp/tools/sk_app/
DWindow.cpp41 this->visitLayers([](Layer* layer) { layer->onBackendCreated(); }); in onBackendCreated() argument
45 return this->signalLayers([=](Layer* layer) { return layer->onChar(c, modifiers); }); in onChar() argument
49 return this->signalLayers([=](Layer* layer) { return layer->onKey(key, state, modifiers); }); in onKey() argument
53 return this->signalLayers([=](Layer* layer) { return layer->onMouse(x, y, state, modifiers); }); in onMouse() argument
57 return this->signalLayers([=](Layer* layer) { return layer->onMouseWheel(delta, modifiers); }); in onMouseWheel() argument
61 return this->signalLayers([=](Layer* layer) { return layer->onTouch(owner, state, x, y); }); in onTouch() argument
65 this->visitLayers([=](Layer* layer) { layer->onUIStateChanged(stateName, stateValue); }); in onUIStateChanged() argument
78 this->visitLayers([](Layer* layer) { layer->onPrePaint(); }); in onPaint() argument
79 this->visitLayers([=](Layer* layer) { layer->onPaint(canvas); }); in onPaint() argument
95 this->visitLayers([=](Layer* layer) { layer->onResize(w, h); }); in onResize() argument
/external/tensorflow/tensorflow/python/keras/layers/
Dseparable_convolutional_test.py70 layer = keras.layers.SeparableConv1D(**kwargs)
71 layer.build((None, 5, 2))
72 self.assertEqual(len(layer.losses), 3)
73 layer(keras.backend.variable(np.ones((1, 5, 2))))
74 self.assertEqual(len(layer.losses), 4)
91 layer = keras.layers.SeparableConv1D(**kwargs)
92 layer.build((None, 5, 2))
93 self.assertEqual(layer.depthwise_kernel.constraint, d_constraint)
94 self.assertEqual(layer.pointwise_kernel.constraint, p_constraint)
95 self.assertEqual(layer.bias.constraint, b_constraint)
[all …]

12345678910>>...62