Skip to content

Commit 8c3fd33

Browse files
Update gpu.md (#2539)
typos fixed
1 parent 4fea1f9 commit 8c3fd33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/guide/gpu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ BSON.@save "./path/to/trained_model.bson" model = cpu(model)
221221
```
222222
The reason behind this is that models trained in the GPU but not transferred to the CPU memory scope will expect `CuArray`s as input. In other words, Flux models expect input data coming from the same kind device in which they were trained on.
223223

224-
In controlled scenarios in which the data fed to the loaded models is garanteed to be in the GPU there's no need to transfer them back to CPU memory scope, however in production environments, where artifacts are shared among different processes, equipments or configurations, there is no garantee that the CUDA.jl package will be available for the process performing inference on the model loaded from the disk.
224+
In controlled scenarios in which the data fed to the loaded models is guaranteed to be in the GPU there's no need to transfer them back to CPU memory scope, however in production environments, where artifacts are shared among different processes, equipments or configurations, there is no guarantee that the CUDA.jl package will be available for the process performing inference on the model loaded from the disk.
225225

226226

227227
## Disabling CUDA or choosing which GPUs are visible to Flux

0 commit comments

Comments
 (0)