View source on GitHub |
Check if policy info has bandit_policy_type
field/tensor.
tf_agents.policies.utils.has_bandit_policy_type(
info: Optional[Union[tf_agents.policies.utils.PolicyInfo
, tf_agents.policies.utils.PerArmPolicyInfo
]],
check_for_tensor: bool = False
) -> bool