Skip to content

Commit c25aa7a

Browse files
Polydynamicalmsaroufimholly1238
authored
replace "format" with f string (#1725)
Co-authored-by: Mark Saroufim <marksaroufim@fb.com> Co-authored-by: Holly Sweeney <77758406+holly1238@users.noreply.github.com>
1 parent 3df4ce0 commit c25aa7a

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)