mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
Fix typos in docs (#80602)
I hope it helps. Pull Request resolved: https://github.com/pytorch/pytorch/pull/80602 Approved by: https://github.com/kit1980
This commit is contained in:
committed by
PyTorch MergeBot
parent
372a19d2c6
commit
e7635c06ce
@@ -92,7 +92,7 @@ CUDA Stream Usage Examples
|
||||
|
||||
// get the default CUDA stream on device 0
|
||||
at::cuda::CUDAStream defaultStream = at::cuda::getDefaultCUDAStream();
|
||||
// set current CUDA stream back to default CUDA stream on devide 0
|
||||
// set current CUDA stream back to default CUDA stream on device 0
|
||||
at::cuda::setCurrentCUDAStream(defaultStream);
|
||||
// sum() on tensor0 uses `defaultStream` as current CUDA stream
|
||||
tensor0.sum();
|
||||
@@ -120,7 +120,7 @@ CUDA Stream Usage Examples
|
||||
.. attention::
|
||||
|
||||
Above code is running on the same CUDA device. `setCurrentCUDAStream` will always set current CUDA stream on current device,
|
||||
but note that `setCurrentCUDASteram` actually set current stream on the device of passed in CUDA stream.
|
||||
but note that `setCurrentCUDAStream` actually set current stream on the device of passed in CUDA stream.
|
||||
|
||||
|
||||
2. Acquiring and setting CUDA streams on multiple devices.
|
||||
|
||||
Reference in New Issue
Block a user