MCPcopy Index your code
hub / github.com/pytorch/pytorch / RunAllOnGPU

Method RunAllOnGPU

caffe2/python/core.py:2222–2224  ·  view source on GitHub ↗

A convenient function to run everything on the GPU.

(self, gpu_id=0, use_cudnn=False)

Source from the content-addressed store, hash-verified

2220 Net._RunAllOnGPU(arg.n, gpu_id, use_cudnn)
2221
2222 def RunAllOnGPU(self, gpu_id=0, use_cudnn=False):
2223 """A convenient function to run everything on the GPU."""
2224 self._RunAllOnGPU(self._net, gpu_id, use_cudnn)
2225
2226
2227

Callers 9

test_timingsMethod · 0.95
test_rnn_run_on_gpuMethod · 0.95
FinalizeAfterCheckpointFunction · 0.95
LoadModelFunction · 0.95
LoadModelFunction · 0.95
test_simple_cnnmodelMethod · 0.45
BenchmarkFunction · 0.45
setUpMethod · 0.45
BenchmarkFunction · 0.45

Calls 1

_RunAllOnGPUMethod · 0.95

Tested by 4

test_timingsMethod · 0.76
test_rnn_run_on_gpuMethod · 0.76
test_simple_cnnmodelMethod · 0.36
setUpMethod · 0.36