| 564 | */ |
| 565 | template <typename TensorType> |
| 566 | inline void sync_if_necessary() |
| 567 | { |
| 568 | #ifdef ARM_COMPUTE_CL |
| 569 | if (opencl_is_available() && std::is_same<typename std::decay<TensorType>::type, arm_compute::CLTensor>::value) |
| 570 | { |
| 571 | CLScheduler::get().sync(); |
| 572 | } |
| 573 | #endif /* ARM_COMPUTE_CL */ |
| 574 | } |
| 575 | |
| 576 | /** Sync tensor if necessary. |
| 577 | * |
nothing calls this directly
no test coverage detected