| 108 | } |
| 109 | |
| 110 | bool 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 | |
| 129 | bool CustomKernelNodeOps::PrepareTensors(Node* node) |
| 130 | { |
nothing calls this directly
no test coverage detected