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

Method allocate_tensors

tensorflow/lite/python/interpreter.py:242–244  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

240 self._delegates = None
241
242 def allocate_tensors(self):
243 self._ensure_safe()
244 return self._interpreter.AllocateTensors()
245
246 def _safe_to_run(self):
247 """Returns true if there exist no numpy array buffers.

Callers 15

testFloatMethod · 0.95
testStringMethod · 0.95
testQuantizationMethod · 0.95
testScalarValidMethod · 0.95
testFunctionsMethod · 0.95
_evaluateTFLiteModelMethod · 0.95
testSessionMethod · 0.95
testConcreteFuncMethod · 0.95
testFloatMethod · 0.95
testStringMethod · 0.95
testQuantizationMethod · 0.95

Calls 2

_ensure_safeMethod · 0.95
AllocateTensorsMethod · 0.45

Tested by 15

testFloatMethod · 0.76
testStringMethod · 0.76
testQuantizationMethod · 0.76
testScalarValidMethod · 0.76
testFunctionsMethod · 0.76
_evaluateTFLiteModelMethod · 0.76
testSessionMethod · 0.76
testConcreteFuncMethod · 0.76
testFloatMethod · 0.76
testStringMethod · 0.76
testQuantizationMethod · 0.76