(encoding_indices)
| 191 | @nn.compact |
| 192 | def __call__(self, z, encoding_indices=None): |
| 193 | def quantize(encoding_indices): |
| 194 | w = jax.device_put(embeddings) |
| 195 | return w[(encoding_indices,)] |
| 196 | embeddings = self.param( |
| 197 | 'embeddings', |
| 198 | lambda rng, shape, dtype: jax.random.uniform( |