Skip to content

Commit

Permalink
Merge pull request #108 from CUNY-CL/varnames
Browse files Browse the repository at this point in the history
Styles variable names
  • Loading branch information
kylebgorman authored Jul 8, 2023
2 parents ed277fc + 5dcc2bb commit 28ff0e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yoyodyne/models/pointer_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,11 @@ def forward(

@staticmethod
def _reshape_hiddens(
H: torch.Tensor, C: torch.Tensor, layers: int, num_directions: int
h: torch.Tensor, c: torch.Tensor, layers: int, num_directions: int
) -> Tuple[torch.Tensor, torch.Tensor]:
H = H.view(layers, num_directions, H.size(1), H.size(2)).sum(axis=1)
C = C.view(layers, num_directions, C.size(1), C.size(2)).sum(axis=1)
return (H, C)
h = h.view(layers, num_directions, h.size(1), h.size(2)).sum(axis=1)
c = c.view(layers, num_directions, c.size(1), c.size(2)).sum(axis=1)
return h, c

@property
def name(self) -> str:
Expand Down

0 comments on commit 28ff0e5

Please sign in to comment.