Skip to content

Commit 3df4ce0

Browse files
Polydynamicalholly1238
Polydynamical
andauthored
use f string instead of "format" (#1724)
Co-authored-by: Holly Sweeney <77758406+holly1238@users.noreply.github.com>
1 parent 640d55c commit 3df4ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/basics/quickstart_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989

9090
# Get cpu or gpu device for training.
9191
device = "cuda" if torch.cuda.is_available() else "cpu"
92-
print("Using {} device".format(device))
92+
print(f"Using {device} device")
9393

9494
# Define model
9595
class NeuralNetwork(nn.Module):

0 commit comments

Comments
 (0)