chore(example/cifar): switch to GPU for colab test
This commit is contained in:
parent
787734f624
commit
bb4e286ee5
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user