Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 557378061
  • Loading branch information
V-MoE Authors authored and copybara-github committed Aug 16, 2023
1 parent 662341d commit c2b4ce0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vmoe/evaluate/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def _make_callback_fn(cls, *, apply_fn, loss_fn, label_pred_fn, datasets,
# Note: We create the eval_step_pjit here to avoid multiple compilation
# steps. If the shapes of inputs/outputs for all datasets is the same, this
# will be only compiled once.
eval_state_dtype_struct = EvalState(
eval_state_dtype_struct = EvalState( # pytype: disable=wrong-arg-types # dataclass_transform
num=jax.ShapeDtypeStruct(shape=(), dtype=jnp.float32),
sum_correct=jax.ShapeDtypeStruct(shape=(), dtype=jnp.float32),
sum_loss=jax.ShapeDtypeStruct(shape=(), dtype=jnp.float32),
Expand Down
2 changes: 1 addition & 1 deletion vmoe/projects/adversarial_attacks/attacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import jax.numpy as jnp


class AttackState(flax.struct.PyTreeNode):
class AttackState(flax.struct.PyTreeNode): # pytype: disable=invalid-function-definition # dataclass_transform
"""State used to aggregate attack statistics over several batches of images.
Attributes:
Expand Down

0 comments on commit c2b4ce0

Please sign in to comment.