Skip to content

Commit 9a445bb

Browse files
sekyondaMetapatrocinio
authored andcommitted
Update char_rnn_classification_tutorial.py
1 parent 7afbd94 commit 9a445bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/char_rnn_classification_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def __init__(self, data_dir):
180180
self.labels.append(label)
181181

182182
# Create numerical representation of labels
183-
# Store unique labels in alphabetical order and convert each label to its index
183+
# Store unique labels and convert each label to its index in the label vocabulary
184184
self.labels_uniq = list(labels_set)
185185
for idx in range(len(self.labels)):
186186
temp_tensor = torch.tensor([self.labels_uniq.index(self.labels[idx])], dtype=torch.long)

0 commit comments

Comments
 (0)