Home
last modified time | relevance | path

Searched refs:input_signature (Results 1 – 25 of 489) sorted by relevance

12345678910>>...20

/external/tensorflow/tensorflow/lite/python/
Dtflite_keras_util.py151 def trace_model_call(model, input_signature=None): argument
165 if input_signature is None:
167 input_signature = model.call.input_signature
169 if input_signature is None:
170 input_signature = model_input_signature(model)
172 if input_signature is None:
175 @def_function.function(input_signature=input_signature, autograph=False)
180 inputs = args[0] if len(input_signature) == 1 else list(args)
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/
Dstructured_output.py40 @tf.function(input_signature=[])
52 @tf.function(input_signature=[])
65 @tf.function(input_signature=[])
78 @tf.function(input_signature=[])
88 @tf.function(input_signature=[])
101 @tf.function(input_signature=[])
116 @tf.function(input_signature=[tf.TensorSpec([], tf.float32)])
Dstructured_input.py42 @tf.function(input_signature=[
55 @tf.function(input_signature=[[
69 @tf.function(input_signature=[{
83 @tf.function(input_signature=[{
100 @tf.function(input_signature=[{
119 @tf.function(input_signature=[{
Dcall_to_exported.py68 @tf.function(input_signature=[tf.TensorSpec([], tf.float32)])
72 @tf.function(input_signature=[tf.TensorSpec([], tf.float32)])
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Dmap_defun_op_test.py53 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
68 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
81 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.int32)])
95 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
108 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
122 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
134 @function.defun(input_signature=[tensor_spec.TensorSpec([2], dtypes.int32)])
145 @function.defun(input_signature=[
165 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.int32)])
178 @function.defun(input_signature=[tensor_spec.TensorSpec([5], dtypes.int64)])
[all …]
/external/tensorflow/tensorflow/python/keras/saving/
Dsaving_utils.py101 def trace_model_call(model, input_signature=None): argument
115 if input_signature is None:
117 input_signature = model.call.input_signature
119 if input_signature is None:
120 input_signature = model_input_signature(model)
122 if input_signature is None:
125 @def_function.function(input_signature=input_signature)
130 inputs = args[0] if len(input_signature) == 1 else list(args)
Dsaved_model_experimental.py69 input_signature=None, argument
137 signatures=saving_utils.trace_model_call(model, input_signature))
140 input_signature)
167 def _save_v1_format(model, path, custom_objects, as_text, input_signature): argument
205 'input_signature': input_signature}
237 input_signature): argument
265 if input_signature is None:
268 input_tensors = nest.map_structure(create_placeholder, input_signature)
/external/tensorflow/tensorflow/python/ops/
Dfunctional_ops_test.py51 input_signature=[tensor_spec.TensorSpec((), dtypes.float32)])
56 input_signature=[tensor_spec.TensorSpec((), dtypes.float32)])
69 @def_function.function(input_signature=signature)
73 @def_function.function(input_signature=signature)
Dsobol_ops_test.py92 input_signature=[tensor_spec.TensorSpec(shape=[], dtype=dtypes.int32)])
103 input_signature=[tensor_spec.TensorSpec(shape=[], dtype=dtypes.int32)])
114 input_signature=[tensor_spec.TensorSpec(shape=[], dtype=dtypes.int32)] *
/external/tensorflow/tensorflow/python/saved_model/
Dsave_test.py95 input_signature=[tensor_spec.TensorSpec(None, dtypes.float32)])
113 input_signature=[tensor_spec.TensorSpec(None, dtypes.float32)])
171 @def_function.function(input_signature=[])
176 @def_function.function(input_signature=[])
188 @def_function.function(input_signature=[])
239 input_signature=([
280 model.f = def_function.function(lambda: 3., input_signature=())
320 @def_function.function(input_signature=[
336 @def_function.function(input_signature=[
358 @def_function.function(input_signature=[
[all …]
Dload_test.py147 input_signature=[tensor_spec.TensorSpec([None], dtypes.int64)])
165 input_signature=[tensor_spec.TensorSpec(None, dtypes.float32)])
179 input_signature=[tensor_spec.TensorSpec(None, dtypes.float32)])
252 @def_function.function(input_signature=[
267 input_signature=[])
280 input_signature=[])
327 input_signature=[tensor_spec.TensorSpec(None, dtypes.float32)])
356 input_signature=[tensor_spec.TensorSpec(None, dtypes.float32)])
359 input_signature=[tensor_spec.TensorSpec(None, dtypes.float32)])
668 input_signature=[tensor_spec.TensorSpec(None, dtypes.float32)])
[all …]
Dfunction_serialization.py47 proto.input_signature.CopyFrom(
48 coder.encode_structure(function_spec.input_signature))
/external/tensorflow/tensorflow/python/distribute/integration_test/
Dsaved_model_test.py90 @tf.function(input_signature=[])
121 @tf.function(input_signature=[])
147 @tf.function(input_signature=[])
173 @tf.function(input_signature=[])
199 @tf.function(input_signature=[])
229 @tf.function(input_signature=[])
238 @tf.function(input_signature=[])
292 @tf.function(input_signature=[])
345 @tf.function(input_signature=[tf.TensorSpec(shape=(), dtype=tf.float32)])
384 @tf.function(input_signature=[])
[all …]
/external/tensorflow/tensorflow/python/eager/
Ddef_function.py487 input_signature=None, argument
515 input_signature,
536 self._input_signature = input_signature
662 input_signature=self.input_signature,
733 input_signature=self._input_signature,
770 self._python_function, self.input_signature)
1051 def input_signature(self): member in Function
1052 return self._function_spec.input_signature
1144 if self.input_signature is not None:
1337 input_signature=None, argument
[all …]
Dfunction.py1629 function_spec.input_signature,
2339 input_signature, argument
2449 input_signature,
2458 input_signature, argument
2506 if input_signature is None:
2514 if not isinstance(input_signature, (tuple, list)):
2516 "list, received " + str(type(input_signature)))
2518 self._input_signature = tuple(input_signature)
2519 self._flat_input_signature = tuple(nest.flatten(input_signature,
2539 def input_signature(self): member in FunctionSpec
[all …]
Ddef_function_test.py300 input_signature=[tensor_spec.TensorSpec((), dtypes.int32)])
306 input_signature=[tensor_spec.TensorSpec(None, dtypes.float32)])
677 def testClone(self, input_signature, autograph, autograph_options, implements, argument
684 input_signature=input_signature,
700 self.assertEqual(input_signature, cloned._input_signature)
759 def test_pickle(self, input_signature, autograph, autograph_options, argument
766 input_signature=input_signature,
776 self.assertEqual(input_signature, cloned._input_signature)
/external/tensorflow/tensorflow/cc/saved_model/testdata/
Dgenerate_saved_models.py51 @def_function.function(input_signature=[
81 @def_function.function(input_signature=[])
101 input_signature=[tensor_spec.TensorSpec(shape=None, dtype=dtypes.string)])
/external/tensorflow/tensorflow/python/keras/saving/saved_model/
Dsave_impl.py191 if fn is not None and fn.input_signature is not None:
377 layer.call.input_signature is not None):
378 return layer.call.input_signature
393 input_signature = [nest.map_structure(
396 return input_signature
498 input_signature=self.fn_input_signature)
619 fn, 'loss_fn_{}'.format(index), input_signature=[])
630 input_signature=[
/external/tensorflow/tensorflow/python/data/experimental/ops/
Dprefetching_ops.py134 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.string)])
154 input_signature=[tensor_spec.TensorSpec([], dtypes.string)],
166 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.string)])
185 @function.defun(input_signature=[tensor_spec.TensorSpec([], dtypes.string)])
/external/tensorflow/tensorflow/lite/examples/experimental_new_converter/
Dstack_trace_example.py49 @tf.function(input_signature=[tf.TensorSpec(shape=[3, 3], dtype=tf.float32)])
73 @tf.function(input_signature=[tf.TensorSpec(shape=[3, 3], dtype=tf.float32)])
/external/tflite-support/tensorflow_lite_support/custom_ops/kernel/
Dngrams_test.py65 input_signature = [tf.TensorSpec(shape=[None], dtype=tf.string)]
67 input_signature += [tf.TensorSpec(shape=[None], dtype=tf.int64)] * rs
71 @tf.function(input_signature=input_signature)
91 input_signature=[tf.TensorSpec(shape=shape, dtype=tf.string)])
/external/tensorflow/tensorflow/python/tools/
Dmake_aot_compile_models.py46 input_signature=[tensor_spec.TensorSpec([3000, 5000], dtypes.float32),
63 input_signature=[tensor_spec.TensorSpec([3, 5], dtypes.float32),
/external/tensorflow/tensorflow/c/experimental/saved_model/internal/testdata/
Dgen_saved_models.py68 input_signature=[tensor_spec.TensorSpec((), dtypes.float32)])
84 input_signature=[tensor_spec.TensorSpec((), dtypes.float32)])
/external/tensorflow/tensorflow/python/keras/tests/
Dconvert_to_constants_test.py118 @def_function.function(input_signature=[
140 @def_function.function(input_signature=[
169 @def_function.function(input_signature=[
/external/tensorflow/tensorflow/python/training/tracking/
Dtracking.py266 @def_function.function(input_signature=[], autograph=False)
271 @def_function.function(input_signature=[], autograph=False)
276 @def_function.function(input_signature=[], autograph=False)

12345678910>>...20