Skip to content

Commit ab8196b

Browse files
author
Polydynamical
authored
replace "format" with f string
1 parent 1ef0d11 commit ab8196b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/basics/buildmodel_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# continue to use the CPU.
3939

4040
device = 'cuda' if torch.cuda.is_available() else 'cpu'
41-
print('Using {} device'.format(device))
41+
print(f'Using {device} device')
4242

4343
##############################################
4444
# Define the Class

0 commit comments

Comments
 (0)