Skip to content

Commit

Permalink
small naming changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bashnick committed Jan 23, 2023
1 parent 7143710 commit d8ce56f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from utils import DEVICE


class Head(nn.Module):
class AttentionHead(nn.Module):
"""
One head of the self-attention
One head of the self-attention layer
"""

def __init__(self, head_size, num_embed, block_size, dropout):
Expand Down Expand Up @@ -47,7 +47,7 @@ def __init__(self, num_heads, head_size, num_embed, block_size, dropout):
super().__init__()
self.heads = nn.ModuleList(
[
Head(
AttentionHead(
head_size=head_size,
num_embed=num_embed,
block_size=block_size,
Expand Down

0 comments on commit d8ce56f

Please sign in to comment.