tensorflow/core/grappler/optimizers/pin_to_host_optimizer.cc
// All the nodes that should be denylisted and not swapped.
All the nodes that should be denylisted and not swapped.
All the nodes that should be denylisted and not swapped .
bool IsDenylisted(const NodeDef& node) {
  return
      IsCollective(node) ||
      IsControlFlow(node) ||
      IsNoOp(node);
}
bool IsDenylisted ( const NodeDef & node ) { return IsCollective ( node ) || IsControlFlow ( node ) || IsNoOp ( node ) ; }
All the nodes that should be denylisted and not swapped.
All the nodes that should be denylisted and not swapped .
// Collective ops should not be swapped. // ControlFlow ops should not be swapped. // NoOp ops should not be swapped (due to group dependencies).