import torch


def select_action_ddpg(state, actor):
    """Selects action using actor.
    """
    actor.eval()
    with torch.no_grad():
        action = actor.forward(state).item()

    return action