def _default_get_amax(
    amax_history: torch.Tensor,
    amax_compute_algo: str,
) -> Tuple[torch.Tensor, torch.Tensor]:
    """Default function to obtain amax from history."""
    if amax_compute_algo == "max":
        amax = torch.max(amax_history, dim=0).values
    else:
        amax = amax_history[0]

    amax_history = update_amax_history(amax_history)
    return amax_history, amax
Default function to obtain amax from history.
intel_extension_for_pytorch/quantization/fp8/fp8.py