tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc
static void PropagateAttributes(Operation *src, Operation *dst) {
  auto device = mlir::Identifier::get("device", src->getContext());
  for (auto named_attr : src->getAttrs()) {
    if (*named_attr.first.begin() == '_' || named_attr.first == device)
      dst->setAttr(named_attr.first, named_attr.second);
  }
}
// Propagates underscore and device attributes from src to dst.
// TODO(b/158769932): This should be a general feature instead post some policy
// discussion.
Propagates underscore and device attributes from src to dst.
TODO(b/158769932): This should be a general feature instead post some policy
discussion.
Propagates underscore and device attributes from src to dst . TODO ( b / 158769932 ) : This should be a general feature instead post some policy discussion .
static void PropagateAttributes(Operation *src, Operation *dst) {
  auto device = mlir::Identifier::get("device", src->getContext());
  for (auto named_attr : src->getAttrs()) {
    if (*named_attr.first.begin() == '_' || named_attr.first == device)
      dst->setAttr(named_attr.first, named_attr.second);
  }
}
static void PropagateAttributes ( Operation * src , Operation * dst ) { auto device = mlir :: Identifier :: get ( " " , src -> getContext ( ) ) ; for ( auto named_attr : src -> getAttrs ( ) ) { if ( * named_attr . first . begin ( ) == ' ' || named_attr . first == device ) dst -> setAttr ( named_attr . first , named_attr . second ) ; } }
Propagates underscore and device attributes from src to dst.
Propagates underscore and device attributes from src to dst .