Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion enn/networks/combiners.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ def sample_logits(sub_key: chex.PRNGKey) -> chex.Array:

return jax.vmap(sample_logits)(enn_keys)

return jax.jit(enn_batch_fwd)
return jax.jit(enn_batch_fwd) # pyrefly: ignore[bad-return]
2 changes: 1 addition & 1 deletion enn/networks/forwarders.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def forward(params: hk.Params, state: hk.State, x: base.Input) -> chex.Array:
net_out, unused_state = batch_apply(params, state, x, indices)
return utils.parse_net_output(net_out)

return jax.jit(forward)
return jax.jit(forward) # pyrefly: ignore[bad-return]
2 changes: 1 addition & 1 deletion enn/supervised/multiloss_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def train(self, num_batches: int):

# Periodically log this performance as dataset=train.
if self.step % self._train_log_freq == 0:
loss_metrics.update({
loss_metrics.update({ # pyrefly: ignore[no-matching-overload]
'dataset': 'train',
'step': self.step,
'sgd': True,
Expand Down
2 changes: 1 addition & 1 deletion enn/supervised/sgd_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def train(self, num_batches: int):

# Periodically log this performance as dataset=train.
if self.step % self._train_log_freq == 0:
loss_metrics.update(
loss_metrics.update( # pyrefly: ignore[no-matching-overload]
{'dataset': 'train', 'step': self.step, 'sgd': True})
self.logger.write(loss_metrics)

Expand Down
Loading