| 167 | } |
| 168 | |
| 169 | ITensorV2 *CpuContext::create_tensor(const AclTensorDescriptor &desc, bool allocate) |
| 170 | { |
| 171 | CpuTensor *tensor = new CpuTensor(this, desc); |
| 172 | if (tensor != nullptr && allocate) |
| 173 | { |
| 174 | tensor->allocate(); |
| 175 | } |
| 176 | return tensor; |
| 177 | } |
| 178 | |
| 179 | IQueue *CpuContext::create_queue(const AclQueueOptions *options) |
| 180 | { |
no test coverage detected