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

Method Postrun

executor/lib/custom_kernel_ops.cpp:110–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110bool CustomKernelNodeOps::Postrun(Node* node)
111{
112 if(k_ops_->postrun == nullptr)
113 return true;
114
115 int ret = k_ops_->postrun(k_ops_, k_inputs_, input_num_, k_outputs_, output_num_);
116
117 ReleaseTensors(node);
118
119 if(ret < 0)
120 {
121 LOG_ERROR() << "custom kernel postrun failed on node: " << node->GetName() << "\n";
122 set_tengine_errno(EFAULT); // external error
123 return false;
124 }
125
126 return true;
127}
128
129bool CustomKernelNodeOps::PrepareTensors(Node* node)
130{

Callers

nothing calls this directly

Calls 3

ReleaseTensorsFunction · 0.85
set_tengine_errnoFunction · 0.85
GetNameMethod · 0.80

Tested by

no test coverage detected