| 87 | } |
| 88 | |
| 89 | ITensorV2 *ClContext::create_tensor(const AclTensorDescriptor &desc, bool allocate) |
| 90 | { |
| 91 | ClTensor *tensor = new ClTensor(this, desc); |
| 92 | if (tensor != nullptr && allocate) |
| 93 | { |
| 94 | tensor->allocate(); |
| 95 | } |
| 96 | return tensor; |
| 97 | } |
| 98 | |
| 99 | IQueue *ClContext::create_queue(const AclQueueOptions *options) |
| 100 | { |