| 323 | |
| 324 | template <class DType> |
| 325 | void free_gpu_tensor(DType* ptr) { |
| 326 | CUDA_CHECK(cudaFree(ptr)); |
| 327 | } |
| 328 | |
| 329 | template <class DType> |
| 330 | void copy_to_gpu(DType* hptr, DType* dptr, std::vector<int> shape) { |
nothing calls this directly
no outgoing calls
no test coverage detected