| 76 | } |
| 77 | |
| 78 | bool ClContext::set_cl_ctx(::cl::Context ctx) |
| 79 | { |
| 80 | if (this->refcount() == 0) |
| 81 | { |
| 82 | _cl_ctx = ctx; |
| 83 | CLScheduler::get().set_context(ctx); |
| 84 | return true; |
| 85 | } |
| 86 | return false; |
| 87 | } |
| 88 | |
| 89 | ITensorV2 *ClContext::create_tensor(const AclTensorDescriptor &desc, bool allocate) |
| 90 | { |
no test coverage detected