Skip to content

Commit

Permalink
Allows setting array of bounds in set_calibration_config.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 678393309
  • Loading branch information
shivaniag authored and copybara-github committed Sep 24, 2024
1 parent dd10639 commit 2f7251f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aqt/jax/v2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def _set_noise_fn(


def set_constant_calibration(
cfg: DotGeneral, bound: float = 1.0, bias: float | None = None
cfg: DotGeneral, bound: Union[jnp.ndarray, float], bias: float | None = None
):
"""Sets the static bound for calibration."""
calibration_cls = functools.partial(
Expand Down

0 comments on commit 2f7251f

Please sign in to comment.