MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / run

Method run

src/gpu/cl/operators/ClPRelu.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void 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

Callers

nothing calls this directly

Calls 3

get_const_tensorMethod · 0.80
get_tensorMethod · 0.45
add_tensorMethod · 0.45

Tested by

no test coverage detected