MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_input_details

Method get_input_details

tensorflow/lite/python/interpreter.py:322–330  ·  view source on GitHub ↗

Gets model input details. Returns: A list of input details.

(self)

Source from the content-addressed store, hash-verified

320 return tensor_details
321
322 def get_input_details(self):
323 """Gets model input details.
324
325 Returns:
326 A list of input details.
327 """
328 return [
329 self._get_tensor_details(i) for i in self._interpreter.InputIndices()
330 ]
331
332 def set_tensor(self, tensor_index, value):
333 """Sets the value of the input tensor. Note this copies data in `value`.

Callers 15

testFloatMethod · 0.95
testStringMethod · 0.95
testQuantizationMethod · 0.95
testScalarValidMethod · 0.95
testFunctionsMethod · 0.95
_evaluateTFLiteModelMethod · 0.95
testFloatMethod · 0.95
testStringMethod · 0.95
testQuantizationMethod · 0.95
testScalarValidMethod · 0.95
testBatchSizeValidMethod · 0.95

Calls 2

_get_tensor_detailsMethod · 0.95
InputIndicesMethod · 0.80

Tested by 15

testFloatMethod · 0.76
testStringMethod · 0.76
testQuantizationMethod · 0.76
testScalarValidMethod · 0.76
testFunctionsMethod · 0.76
_evaluateTFLiteModelMethod · 0.76
testFloatMethod · 0.76
testStringMethod · 0.76
testQuantizationMethod · 0.76
testScalarValidMethod · 0.76
testBatchSizeValidMethod · 0.76