Skip to content

Commit

Permalink
Silence some pytype errors.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 623288032
  • Loading branch information
rchen152 authored and copybara-github committed Apr 9, 2024
1 parent 34a4682 commit 48dcadd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/impala/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, num_actions: int, obs_spec: Nest,
lambda batch_size: net_factory().initial_state(batch_size)))

self._init_fn, self._apply_fn = hk.without_apply_rng(
hk.transform(lambda obs, state: net_factory().unroll(obs, state)))
hk.transform(lambda obs, state: net_factory().unroll(obs, state))) # pytype: disable=attribute-error

@functools.partial(jax.jit, static_argnums=0)
def initial_params(self, rng_key):
Expand Down

0 comments on commit 48dcadd

Please sign in to comment.