| 48 | } |
| 49 | |
| 50 | void ClPRelu::run(ITensorPack &tensors) |
| 51 | { |
| 52 | // Output tensor can be given as nullptr for in-place computation. |
| 53 | // In this case, get the input tensor and use it as the output tensor. |
| 54 | if (tensors.get_tensor(TensorType::ACL_DST) == nullptr) |
| 55 | { |
| 56 | auto src_tensor = const_cast<ITensor *>(tensors.get_const_tensor(TensorType::ACL_SRC_0)); |
| 57 | ARM_COMPUTE_ERROR_ON_MSG(src_tensor == nullptr, "invalid source tensor is given for in-place computation"); |
| 58 | tensors.add_tensor(TensorType::ACL_DST, src_tensor); |
| 59 | } |
| 60 | IClOperator::run(tensors); |
| 61 | } |
| 62 | } // namespace opencl |
| 63 | } // namespace arm_compute |
nothing calls this directly
no test coverage detected