Home
last modified time | relevance | path

Searched refs:output_details (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/lite/python/
Dlite_test.py175 output_details = interpreter.get_output_details()
176 self.assertLen(output_details, 1)
177 self.assertEqual('add', output_details[0]['name'])
178 self.assertEqual(np.float32, output_details[0]['dtype'])
179 self.assertAllEqual([2, 16, 16, 3], output_details[0]['shape'])
180 self.assertEqual((0., 0.), output_details[0]['quantization'])
249 output_details = interpreter.get_output_details()
250 self.assertLen(output_details, 1)
251 self.assertEqual('add', output_details[0]['name'])
252 self.assertEqual(np.float32, output_details[0]['dtype'])
[all …]
Dinterpreter_test.py115 output_details = interpreter.get_output_details()
116 self.assertEqual(1, len(output_details))
117 self.assertEqual('output', output_details[0]['name'])
118 self.assertEqual(np.float32, output_details[0]['dtype'])
119 self.assertTrue(([1, 4] == output_details[0]['shape']).all())
120 self.assertEqual((0.0, 0), output_details[0]['quantization'])
122 [], [], 0, output_details[0]['quantization_parameters'])
129 output_data = interpreter.get_tensor(output_details[0]['index'])
145 output_details = interpreter.get_output_details()
146 output_data = interpreter.get_tensor(output_details[0]['index'])
[all …]
Dlite_flex_test.py73 output_details = interpreter.get_output_details()
75 output_data = interpreter.get_tensor(output_details[0]['index'])
105 output_details = interpreter.get_output_details()
107 output_data = interpreter.get_tensor(output_details[0]['index'])
140 output_details = interpreter.get_output_details()
142 output_data = interpreter.get_tensor(output_details[0]['index'])
222 output_details = interpreter.get_output_details()
224 output_data = interpreter.get_tensor(output_details[0]['index'])
Dconvert_test.py89 output_details = interpreter.get_output_details()
90 self.assertEqual(1, len(output_details))
91 self.assertEqual("add", output_details[0]["name"])
92 self.assertEqual(np.float32, output_details[0]["dtype"])
93 self.assertTrue(([1, 16, 16, 3] == output_details[0]["shape"]).all())
94 self.assertEqual((0., 0.), output_details[0]["quantization"])
135 output_details = interpreter.get_output_details()
136 self.assertEqual(1, len(output_details))
137 self.assertEqual("output", output_details[0]["name"])
138 self.assertEqual(np.uint8, output_details[0]["dtype"])
[all …]
Dlite_v2_test.py191 output_details = interpreter.get_output_details()
192 self.assertLen(output_details, 1)
193 self.assertEqual(np.float32, output_details[0]['dtype'])
274 output_details = interpreter.get_output_details()
275 self.assertLen(output_details, 1)
277 output_details[0]['dtype'])
332 output_details = interpreter.get_output_details()
333 self.assertLen(output_details, 1)
334 self.assertEqual(np.float32, output_details[0]['dtype'])
401 output_details = interpreter.get_output_details()
[all …]
Dutil_test.py126 output_details = interpreter.get_output_details()[0]
129 self.assertEqual(output_details["dtype"], np.uint32)
137 output_data = interpreter.get_tensor(output_details["index"])[0]
363 output_details = interpreter.get_output_details()[0]
367 self.assertEqual(output_details["dtype"], out_tftype.as_numpy_dtype)
384 output_data = interpreter.get_tensor(output_details["index"])[0]
385 if output_details["dtype"] != np.float32:
387 scale, zero_point = output_details["quantization"]
Dlite_v2_test_util.py60 output_details = interpreter.get_output_details()
67 interpreter.get_tensor(details['index']) for details in output_details
/external/tensorflow/tensorflow/python/kernel_tests/signal/
Dtest_util.py90 output_details = the_interpreter.get_output_details()
95 input_ndarrays, input_details, output_details))
100 for details in output_details]
/external/tflite-support/tensorflow_lite_support/custom_ops/python/
Dsentencepiece_tokenizer_test.py137 output_details = interpreter.get_output_details()
144 interpreter.get_tensor(output_details[0]["index"]), expected_result)
180 output_details = interpreter.get_output_details()
186 interpreter.get_tensor(output_details[0]["index"]), expected_result)
217 output_details = interpreter.get_output_details()
221 interpreter.get_tensor(output_details[0]["index"]), expected_result)
Dragged_tensor_to_tensor_test.py46 output_details = interpreter.get_output_details()
52 interpreter.get_tensor(output_details[0]["index"]),
/external/tensorflow/tensorflow/lite/tutorials/
Dmnist_tflite.py60 output_details = interpreter.get_output_details()
67 output_data = interpreter.get_tensor(output_details[0]['index'])
/external/tensorflow/tensorflow/lite/examples/python/
Dlabel_image.py68 output_details = interpreter.get_output_details() variable
90 output_data = interpreter.get_tensor(output_details[0]['index'])
/external/tensorflow/tensorflow/lite/examples/experimental_new_converter/
Dkeras_lstm.ipynb191 "output_details = interpreter.get_output_details()\n",
194 "result = interpreter.get_tensor(output_details[0][\"index\"])\n",
DKeras_LSTM_fusion_Codelab.ipynb208 "output_details = interpreter.get_output_details()\n",
214 " result = interpreter.get_tensor(output_details[0][\"index\"])\n",
/external/tensorflow/tensorflow/lite/testing/model_coverage/
Dmodel_coverage_lib.py313 output_details = interpreter.get_output_details()
321 for output_tensor in output_details
323 output_labels = [output_tensor["name"] for output_tensor in output_details]
/external/tensorflow/tensorflow/lite/testing/
Dzip_test_utils.py404 output_details = interpreter.get_output_details()
406 for output_detail in output_details:
/external/tensorflow/tensorflow/lite/g3doc/models/super_resolution/
Doverview.ipynb221 "output_details = interpreter.get_output_details()\n",
228 "output_data = interpreter.get_tensor(output_details[0]['index'])\n",
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/train/
Dtrain_micro_speech_model.ipynb499 " output_details = interpreter.get_output_details()[0]\n",
511 " output = interpreter.get_tensor(output_details[\"index\"])[0]\n",
/external/tensorflow/tensorflow/lite/g3doc/performance/
Dpost_training_integer_quant.ipynb489 " output_details = interpreter.get_output_details()[0]\n",
504 " output = interpreter.get_tensor(output_details[\"index\"])[0]\n",
/external/tensorflow/tensorflow/lite/g3doc/guide/
Dinference.md477 output_details = interpreter.get_output_details()
488 output_data = interpreter.get_tensor(output_details[0]['index'])
/external/tensorflow/tensorflow/lite/micro/examples/hello_world/train/
Dtrain_hello_world_model.ipynb3063 " output_details = interpreter.get_output_details()[0]\n",
3072 " y_pred = np.empty(x_test_.size, dtype=output_details[\"dtype\"])\n",
3076 " y_pred[i] = interpreter.get_tensor(output_details[\"index\"])[0]\n",
3079 " output_scale, output_zero_point = output_details[\"quantization\"]\n",