MCPcopy Create free account
hub / github.com/OAID/Tengine / SetConstTensorBuffer

Function SetConstTensorBuffer

core/lib/static_graph.cpp:485–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485void SetConstTensorBuffer(StaticTensor* tensor, void* addr)
486{
487 StaticConstTensor* const_tensor = dynamic_cast<StaticConstTensor*>(tensor);
488 const_tensor->mem_addr = addr;
489}
490
491void SetConstTensorFileLocation(StaticTensor* tensor, int offset, int file_size)
492{

Callers 15

LoadTensorMethod · 0.85
LoadTensorMethod · 0.85
LoadCaffeBlobFunction · 0.85
CreatePresetNodeFunction · 0.85
LoadConstLiteTensorMethod · 0.85
LoadConstTensorMethod · 0.85
LoadMxnetEltScalarFunction · 0.85
LoadConstTensorFunction · 0.85
LoadConv2DFunction · 0.85
CreatePresetNodeFunction · 0.85
LoadLSTMInitStateFunction · 0.85
LoadGRUInitStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected