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

Function SetConstTensorFileLocation

core/lib/static_graph.cpp:491–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491void SetConstTensorFileLocation(StaticTensor* tensor, int offset, int file_size)
492{
493 StaticConstTensor* const_tensor = dynamic_cast<StaticConstTensor*>(tensor);
494
495 const_tensor->file_offset = offset;
496 const_tensor->file_size = file_size;
497}
498
499const std::string& GetTensorName(StaticTensor* tensor)
500{

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
CreatePresetNodeFunction · 0.85
LoadLSTMInitStateFunction · 0.85
LoadGRUInitStateFunction · 0.85
LoadRNNInitStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected