Skip to content
fn

policy_for

AmpPolicy policy_for(int op, Device device)

The policy op takes on device under autocast.

op is a schema name or an engine composite's name. An op without a row in AmpPolicyTable.def keeps its inputs' dtype, so the answer for it is AmpPolicy::KeepInput — whatever its schema declares.