Skip to content

Commit dfbcbd5

Browse files
committed
Fix #2814: Remove Markdown backticks, use RST syntax for code block
1 parent d627981 commit dfbcbd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

beginner_source/introyt/introyt1_tutorial.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ def num_flat_features(self, x):
304304
# standard deviations (second tuple) of the rgb values of the images in
305305
# the dataset. You can calculate these values yourself by running these
306306
# few lines of code:
307-
# ```
307+
# ::
308+
#
308309
# from torch.utils.data import ConcatDataset
309310
# transform = transforms.Compose([transforms.ToTensor()])
310311
# trainset = torchvision.datasets.CIFAR10(root='./data', train=True,
@@ -317,8 +318,7 @@ def num_flat_features(self, x):
317318
# #get the mean of each channel
318319
# mean = torch.mean(x, dim=(0,2,3)) #tensor([0.4914, 0.4822, 0.4465])
319320
# std = torch.std(x, dim=(0,2,3)) #tensor([0.2470, 0.2435, 0.2616])
320-
#
321-
# ```
321+
#
322322
#
323323
# There are many more transforms available, including cropping, centering,
324324
# rotation, and reflection.

0 commit comments

Comments
 (0)