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

Method _has_valid_tensors

tensorflow/lite/python/lite.py:1008–1014  ·  view source on GitHub ↗

Checks if the input and output tensors have been initialized. Returns: Bool.

(self)

Source from the content-addressed store, hash-verified

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.
1010
1011 Returns:
1012 Bool.
1013 """
1014 return self._input_tensors and self._output_tensors
1015
1016 def _set_batch_size(self, batch_size):
1017 """Sets the first dimension of the input tensor to `batch_size`.

Callers 5

testValidConstructorMethod · 0.95
__init__Method · 0.95
convertMethod · 0.95
get_input_arraysMethod · 0.95
_set_batch_sizeMethod · 0.95

Calls

no outgoing calls

Tested by 1

testValidConstructorMethod · 0.76