(self)
| 45 | dtype: jnp.dtype = jnp.float32 |
| 46 | |
| 47 | def setup(self): |
| 48 | self.conv = nn.Conv( |
| 49 | self.out_channels, |
| 50 | kernel_size=(3, 3), |
| 51 | strides=(2, 2), |
| 52 | padding=((1, 1), (1, 1)), # padding="VALID", |
| 53 | dtype=self.dtype, |
| 54 | ) |
| 55 | |
| 56 | def __call__(self, hidden_states): |
| 57 | # pad = ((0, 0), (0, 1), (0, 1), (0, 0)) # pad height and width dim |
nothing calls this directly
no outgoing calls
no test coverage detected