Home
last modified time | relevance | path

Searched refs:kShardingAttribute (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/compiler/tf2xla/
Dsharding_util.cc25 const char kShardingAttribute[] = "_XlaSharding"; variable
145 if (const AttrValue* attr = src.attrs().Find(kShardingAttribute)) { in SetShardingDeviceAssignmentFromNode()
146 dst->AddAttr(kShardingAttribute, *attr); in SetShardingDeviceAssignmentFromNode()
152 if (!HasNodeAttr(node_def, kShardingAttribute)) { in GetShardingFromNodeDef()
157 TF_RETURN_IF_ERROR(GetNodeAttr(node_def, kShardingAttribute, &value)); in GetShardingFromNodeDef()
/external/tensorflow/tensorflow/core/tpu/graph_rewrite/
Ddistributed_tpu_rewrite_pass.cc90 const char kShardingAttribute[] = "_XlaSharding"; variable
2109 args[i]->AddAttr(kShardingAttribute, in AssignArgsAndRetvalsToCores()
2207 retvals[i]->AddAttr(kShardingAttribute, in AssignArgsAndRetvalsToCores()