(self)
| 107 | dtype: jnp.dtype = jnp.float32 |
| 108 | |
| 109 | def setup(self): |
| 110 | self.conv = nn.Conv( |
| 111 | self.in_channels, |
| 112 | kernel_size=(3, 3), |
| 113 | strides=(2, 2), |
| 114 | padding="VALID", |
| 115 | dtype=self.dtype, |
| 116 | ) |
| 117 | |
| 118 | def __call__(self, hidden_states): |
| 119 | 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