(self, hidden_states)
| 116 | ) |
| 117 | |
| 118 | def __call__(self, hidden_states): |
| 119 | pad = ((0, 0), (0, 1), (0, 1), (0, 0)) # pad height and width dim |
| 120 | hidden_states = jnp.pad(hidden_states, pad_width=pad) |
| 121 | hidden_states = self.conv(hidden_states) |
| 122 | return hidden_states |
| 123 | |
| 124 | |
| 125 | class FlaxResnetBlock2D(nn.Module): |