chore(example/cifar): switch to GPU for colab test

This commit is contained in:
sugarme 2020-07-08 20:20:53 +10:00
parent 787734f624
commit bb4e286ee5

View File

@ -107,9 +107,9 @@ func main() {
startRAM := si.TotalRam - si.FreeRam
// cuda := gotch.CudaBuilder(0)
// device := cuda.CudaIfAvailable()
device := gotch.CPU
cuda := gotch.CudaBuilder(0)
device := cuda.CudaIfAvailable()
// device := gotch.CPU
vs := nn.NewVarStore(device)