Skip to content

Commit

Permalink
Remove unnecessary assignment to num_tokens
Browse files Browse the repository at this point in the history
It has been set above, and `effects` doesn't change.

PiperOrigin-RevId: 538881671
  • Loading branch information
jax authors committed Jun 8, 2023
1 parent 1445149 commit 9dccaad
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion jax/_src/interpreters/mlir.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,6 @@ def aval_to_types(aval):
# If we aren't creating tokens they will be the initial inputs to the
# MLIR function.
output_token_types = []
num_tokens = len(effects)
token_types = [token_type() for _ in effects]
token_avals = [core.AbstractToken] * len(effects)
input_avals = dim_var_avals + token_avals + jaxpr.in_avals
Expand Down

0 comments on commit 9dccaad

Please sign in to comment.