Skip to content

Commit

Permalink
fix(cuboid_transformer): Modified the argument order of '_generalize_…
Browse files Browse the repository at this point in the history
…padding' so that 'pad_h' comes before 'pad_w' (#48)
  • Loading branch information
SungminLee0810 authored May 25, 2023
1 parent e60ff41 commit a9b42c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/earthformer/cuboid_transformer/cuboid_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def forward(self, x):
T += pad_t
H += pad_h
W += pad_w
x = _generalize_padding(x, pad_t, pad_w, pad_h, padding_type=self.padding_type)
x = _generalize_padding(x, pad_t, pad_h, pad_w, padding_type=self.padding_type)

x = x.reshape((B,
T // self.downsample[0], self.downsample[0],
Expand Down

0 comments on commit a9b42c1

Please sign in to comment.