Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
testFloat
Method · 0.95
testString
Method · 0.95
testQuantization
Method · 0.95
testScalarValid
Method · 0.95
testFunctions
Method · 0.95
_evaluateTFLiteModel
Method · 0.95
testSession
Method · 0.95
testConcreteFunc
Method · 0.95
testFloat
Method · 0.95
testString
Method · 0.95
testQuantization
Method · 0.95
testIntermediateInputArray
Method · 0.95
Calls
2
_ensure_safe
Method · 0.95
AllocateTensors
Method · 0.45
Tested by
15
testFloat
Method · 0.76
testString
Method · 0.76
testQuantization
Method · 0.76
testScalarValid
Method · 0.76
testFunctions
Method · 0.76
_evaluateTFLiteModel
Method · 0.76
testSession
Method · 0.76
testConcreteFunc
Method · 0.76
testFloat
Method · 0.76
testString
Method · 0.76
testQuantization
Method · 0.76
testIntermediateInputArray
Method · 0.76