import torch


def a2c_policy_loss(logps: torch.Tensor, advs: torch.Tensor) -> torch.Tensor:
    """
    Loss function for an A2C policy. $-(logp(\pi(a|s)) * A_t)$

    Args:
    - logps (torch.Tensor): Log-probabilities of selected actions.
    - advs (torch.Tensor): Advantage estimates of selected actions.

    Returns:
    - a2c_loss (torch.Tensor): A2C loss term.
    """
    a2c_loss = -(logps * advs).mean()
    return a2c_loss