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

Method FreeMem

core/lib/tensor.cpp:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void Tensor::FreeMem(void)
88{
89 FreeTensor();
90
91 if(static_tensor_)
92 {
93 if(static_tensor_->mem_addr)
94 std::free(static_tensor_->mem_addr);
95
96 static_tensor_->mem_addr = nullptr;
97 static_tensor_ = nullptr;
98 }
99}
100
101void Tensor::BindStaticTensor(StaticConstTensor* static_tensor)
102{

Callers 13

PrerunMethod · 0.45
PrerunMethod · 0.45
PrerunMethod · 0.45
PrerunMethod · 0.45
PrerunMethod · 0.45
PrerunMethod · 0.45
PrerunMethod · 0.45
PrerunMethod · 0.45
PrerunMethod · 0.45
PrerunMethod · 0.45
PrerunMethod · 0.45
PrerunMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected