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

Method get_input_arrays

tensorflow/lite/python/lite.py:997–1006  ·  view source on GitHub ↗

Returns a list of the names of the input tensors. Returns: List of strings.

(self)

Source from the content-addressed store, hash-verified

995 return result
996
997 def get_input_arrays(self):
998 """Returns a list of the names of the input tensors.
999
1000 Returns:
1001 List of strings.
1002 """
1003 if self._has_valid_tensors():
1004 return [_get_tensor_name(tensor) for tensor in self._input_tensors]
1005 else:
1006 return [name for name, _ in self._input_arrays_with_shape]
1007
1008 def _has_valid_tensors(self):
1009 """Checks if the input and output tensors have been initialized.

Callers 3

testValidConstructorMethod · 0.95
convertMethod · 0.95
_convert_tf1_modelFunction · 0.80

Calls 2

_has_valid_tensorsMethod · 0.95
_get_tensor_nameFunction · 0.50

Tested by 1

testValidConstructorMethod · 0.76