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

Function free_tensor_mem

executor/lib/tensor_mem.cpp:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void free_tensor_mem(Tensor* tensor)
101{
102 if(tensor->GetType() == kConstTensor)
103 return;
104
105 if(tensor->ExistAttr("tensor_mem"))
106 tensor->RemoveAttr("tensor_mem");
107}
108
109} // namespace TEngine

Callers 2

RunMethod · 0.85
FreeMemMethod · 0.85

Calls 3

RemoveAttrMethod · 0.80
GetTypeMethod · 0.45
ExistAttrMethod · 0.45

Tested by

no test coverage detected