| 194 | } |
| 195 | |
| 196 | Tensor* Tensor::createHostTensorFromDevice(const Tensor* device, bool copyContent) { |
| 197 | auto tensor = Tensor::create(device->shape(), device->getType(), nullptr, TensorUtils::getDimType(device)); |
| 198 | if (copyContent) { |
| 199 | device->copyToHostTensor(tensor); |
| 200 | } |
| 201 | return tensor; |
| 202 | } |
| 203 | |
| 204 | Tensor::DimensionType Tensor::getDimensionType() const { |
| 205 | auto nativeDescribe = mDescribe->mContent.get(); |
no test coverage detected