interesaaat / TorchSharp

.NET bindings for the Pytorch engine
MIT License
17 stars 1 forks source link

Add tensor transfer functions between CPU and CUDA devices #1

Closed gyeongin closed 5 years ago

gyeongin commented 5 years ago

This PR adds functions for transferring tensors between CPU and CUDA devices. I commented this line to avoid build error. We need to extend this transfer function later to support multiple CUDA devices (e.g., "cuda:3").