Skip to content

Commit 294db45

Browse files
authored
Fix missing module alias in Trainer reference (#19089)
1 parent 9cb6e8c commit 294db45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source-pytorch/starter/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Enable advanced training features using Trainer arguments. These are state-of-th
231231
.. code::
232232
233233
# train on 4 GPUs
234-
trainer = Trainer(
234+
trainer = L.Trainer(
235235
devices=4,
236236
accelerator="gpu",
237237
)
@@ -252,7 +252,7 @@ Enable advanced training features using Trainer arguments. These are state-of-th
252252
)
253253
254254
# access the latest state of the art techniques
255-
trainer = Trainer(callbacks=[StochasticWeightAveraging(...)])
255+
trainer = L.Trainer(callbacks=[StochasticWeightAveraging(...)])
256256
257257
----
258258

0 commit comments

Comments
 (0)