Home
last modified time | relevance | path

Searched refs:input_spec (Results 1 – 25 of 478) sorted by relevance

12345678910>>...20

/external/tensorflow/tensorflow/python/keras/engine/
Dinput_spec_test.py21 from tensorflow.python.keras.engine import input_spec
28 input_spec.InputSpec(shape=[1, None, 2, 3], axes={3: 5, '2': 2})
30 input_spec.InputSpec(shape=[1, None, 2, 3], axes={4: 5})
32 input_spec.InputSpec(shape=[1, None, 2, 3], axes={'string': 5})
38 spec = input_spec.InputSpec(shape=[1, None, 2, 3])
40 [1, None, 2, 3], input_spec.to_tensor_shape(spec).as_list())
43 spec = input_spec.InputSpec(ndim=5)
45 [None] * 5, input_spec.to_tensor_shape(spec).as_list())
47 spec = input_spec.InputSpec(ndim=0)
49 [], input_spec.to_tensor_shape(spec).as_list())
[all …]
Dinput_spec.py159 def assert_input_compatibility(input_spec, inputs, layer_name): argument
176 if not input_spec:
179 input_spec = nest.flatten(input_spec)
182 names = [spec.name for spec in input_spec]
203 if len(inputs) != len(input_spec):
205 str(len(input_spec)) + ' input(s), '
208 for input_index, (x, spec) in enumerate(zip(inputs, input_spec)):
281 def to_tensor_spec(input_spec, default_dtype=None): argument
284 if isinstance(input_spec, InputSpec):
285 dtype = input_spec.dtype or default_dtype
[all …]
Dsequential.py510 def input_spec(self): member in Sequential
514 return self.layers[0].input_spec
517 @input_spec.setter
518 def input_spec(self, value): member in Sequential
/external/tensorflow/tensorflow/python/keras/layers/
Deinsum_dense.py246 input_spec = split_string.group(1)
249 elided = len(input_shape) - len(input_spec)
271 dim: (i + elided) - len(input_shape) for i, dim in enumerate(input_spec)
277 input_dim_map = {dim: i for i, dim in enumerate(input_spec)}
280 for i, dim in enumerate(input_spec):
293 if dim not in input_spec and dim not in weight_spec:
296 "weight spec '%s.'" % (dim, output_spec, input_spec,
309 (dim, input_spec, output_spec))
Dpooling.py26 from tensorflow.python.keras.engine.input_spec import InputSpec
70 self.input_spec = InputSpec(ndim=3)
286 self.input_spec = InputSpec(ndim=4)
559 self.input_spec = InputSpec(ndim=5)
726 self.input_spec = InputSpec(ndim=3)
861 self.input_spec = InputSpec(ndim=4)
968 self.input_spec = InputSpec(ndim=5)
Dkernelized.py30 from tensorflow.python.keras.engine import input_spec
188 self.input_spec = input_spec.InputSpec(
DBUILD75 "//tensorflow/python/keras/engine:input_spec",
98 "//tensorflow/python/keras/engine:input_spec",
118 "//tensorflow/python/keras/engine:input_spec",
152 "//tensorflow/python/keras/engine:input_spec",
179 "//tensorflow/python/keras/engine:input_spec",
268 "//tensorflow/python/keras/engine:input_spec",
286 "//tensorflow/python/keras/engine:input_spec",
347 "//tensorflow/python/keras/engine:input_spec",
374 "//tensorflow/python/keras/engine:input_spec",
400 "//tensorflow/python/keras/engine:input_spec",
[all …]
Dlocal.py28 from tensorflow.python.keras.engine.input_spec import InputSpec
156 self.input_spec = InputSpec(ndim=3)
244 self.input_spec = InputSpec(ndim=3, axes={1: input_dim})
246 self.input_spec = InputSpec(ndim=3, axes={-1: input_dim})
458 self.input_spec = InputSpec(ndim=4)
549 self.input_spec = InputSpec(ndim=4, axes={1: input_filter})
551 self.input_spec = InputSpec(ndim=4, axes={-1: input_filter})
Dwrappers.py28 from tensorflow.python.keras.engine.input_spec import InputSpec
186 self.input_spec = nest.map_structure(
514 self.input_spec = layer.input_spec
644 original_input_spec = self.input_spec
645 self.input_spec = full_input_spec
647 self.input_spec = original_input_spec
Dconvolutional.py33 from tensorflow.python.keras.engine.input_spec import InputSpec
163 self.input_spec = InputSpec(min_ndim=self.rank + 2)
219 self.input_spec = InputSpec(min_ndim=self.rank + 2,
974 self.input_spec = InputSpec(ndim=3, axes={channel_axis: input_dim})
1245 self.input_spec = InputSpec(ndim=4, axes={channel_axis: input_dim})
1556 self.input_spec = InputSpec(ndim=5, axes={channel_axis: input_dim})
1819 self.input_spec = InputSpec(ndim=self.rank + 2,
2413 self.input_spec = InputSpec(ndim=4, axes={channel_axis: input_dim})
2516 self.input_spec = InputSpec(ndim=3)
2603 self.input_spec = InputSpec(ndim=4)
[all …]
Dcore.py45 from tensorflow.python.keras.engine.input_spec import InputSpec
280 self.input_spec = InputSpec(ndim=3)
337 self.input_spec = InputSpec(ndim=4)
395 self.input_spec = InputSpec(ndim=5)
604 self.input_spec = InputSpec(ndim=len(self.dims) + 1)
657 self.input_spec = InputSpec(min_ndim=1)
740 self.input_spec = InputSpec(ndim=2)
1171 self.input_spec = InputSpec(min_ndim=2)
1185 self.input_spec = InputSpec(min_ndim=2, axes={-1: last_dim})
Drecurrent.py37 from tensorflow.python.keras.engine.input_spec import InputSpec
436 self.input_spec = None
574 if self.input_spec is not None:
575 self.input_spec[0] = get_input_spec(input_shape)
577 self.input_spec = [get_input_spec(input_shape)]
580 if self.input_spec is not None:
581 self.input_spec[0] = nest.map_structure(get_input_spec, input_shape)
583 self.input_spec = generic_utils.to_list(
710 full_input_spec = self.input_spec + additional_specs
717 self.input_spec = full_input_spec
[all …]
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/
Dcategory_crossing.py189 def compute_output_signature(self, input_spec): argument
190 input_shapes = [x.shape for x in input_spec]
194 for inp_spec in input_spec):
198 for inp_spec in input_spec):
Dhashing.py210 def compute_output_signature(self, input_spec): argument
211 output_shape = self.compute_output_shape(input_spec.shape)
213 if isinstance(input_spec, sparse_tensor.SparseTensorSpec):
Dimage_preprocessing.py32 from tensorflow.python.keras.engine.input_spec import InputSpec
97 self.input_spec = InputSpec(ndim=4)
147 self.input_spec = InputSpec(ndim=4)
222 self.input_spec = InputSpec(ndim=4)
401 self.input_spec = InputSpec(ndim=4)
526 self.input_spec = InputSpec(ndim=4)
815 self.input_spec = InputSpec(ndim=4)
951 self.input_spec = InputSpec(ndim=4)
1090 self.input_spec = InputSpec(ndim=4)
1172 self.input_spec = InputSpec(ndim=4)
[all …]
Ddiscretization.py223 def compute_output_signature(self, input_spec): argument
224 output_shape = self.compute_output_shape(input_spec.shape.as_list())
226 if isinstance(input_spec, sparse_tensor.SparseTensorSpec):
Dcategory_encoding.py141 def compute_output_signature(self, input_spec): argument
142 output_shape = self.compute_output_shape(input_spec.shape.as_list())
/external/tensorflow/tensorflow/python/keras/legacy_tf_layers/
Dbase_test.py34 from tensorflow.python.keras.engine import input_spec
280 self.input_spec = input_spec.InputSpec(ndim=2)
302 self.input_spec = input_spec.InputSpec(min_ndim=2)
325 self.input_spec = input_spec.InputSpec(max_ndim=2)
348 self.input_spec = input_spec.InputSpec(dtype='float32')
368 self.input_spec = input_spec.InputSpec(axes={-1: 2})
390 self.input_spec = input_spec.InputSpec(shape=(None, 3))
410 self.input_spec = None
/external/llvm-project/lldb/source/Utility/
DStructuredData.cpp35 StructuredData::ParseJSONFromFile(const FileSpec &input_spec, Status &error) { in ParseJSONFromFile() argument
38 auto buffer_or_error = llvm::MemoryBuffer::getFile(input_spec.GetPath()); in ParseJSONFromFile()
41 input_spec.GetPath(), in ParseJSONFromFile()
/external/tensorflow/tensorflow/python/keras/saving/saved_model/
Dlayer_serialization.py59 if self.obj.input_spec is not None:
63 self.obj.input_spec)
Dsave_impl.py32 from tensorflow.python.keras.engine import input_spec
381 elif (layer.input_spec is not None and
385 … spec = input_spec.to_tensor_spec(x, layer._compute_dtype) # pylint: disable=protected-access
394 to_tensor_spec_or_none, layer.input_spec)]
/external/tensorflow/tensorflow/python/keras/layers/legacy_rnn/
Drnn_cell_impl.py41 from tensorflow.python.keras.engine import input_spec
441 self.input_spec = input_spec.InputSpec(ndim=2)
549 self.input_spec = input_spec.InputSpec(ndim=2)
726 self.input_spec = input_spec.InputSpec(ndim=2)
932 self.input_spec = input_spec.InputSpec(ndim=2)
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.keras.layers.-input-spec.pbtxt3 is_instance: "<class \'tensorflow.python.keras.engine.input_spec.InputSpec\'>"
Dtensorflow.layers.-input-spec.pbtxt3 is_instance: "<class \'tensorflow.python.keras.engine.input_spec.InputSpec\'>"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.keras.layers.-input-spec.pbtxt3 is_instance: "<class \'tensorflow.python.keras.engine.input_spec.InputSpec\'>"

12345678910>>...20