policy_network = PolicyNetwork(state_dim, action_dim, device=device)