[TF/XLA] Minor clean up
PiperOrigin-RevId: 294124437 Change-Id: I9cceab760d0a33f9d8967e28494bbd79ca103e62
This commit is contained in:
parent
a06701f234
commit
9f718b1041
@ -676,12 +676,10 @@ Status Encapsulator::Subgraph::AddFunctionCallNode(
|
||||
Status Encapsulator::GetFunctionNameAttr(Node const* node, string* attr) const {
|
||||
AttrSlice attrs = node->attrs();
|
||||
attr->clear();
|
||||
bool found_group_attribute = false;
|
||||
for (const auto& node_attr : attrs) {
|
||||
if (node_attr.first == group_attribute_) {
|
||||
TF_RETURN_IF_ERROR(AttrValueHasType(node_attr.second, "string"));
|
||||
*attr = node_attr.second.s();
|
||||
found_group_attribute = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -790,7 +788,6 @@ Status Encapsulator::SplitIntoSubgraphs(FunctionLibraryDefinition* library) {
|
||||
|
||||
TF_RETURN_IF_ERROR(CopySubgraphNodes(&node_images));
|
||||
TF_RETURN_IF_ERROR(CopySubgraphEdges(node_images, &src_arg_pairs));
|
||||
|
||||
MarkGuaranteedConstants(*graph_in_, src_arg_pairs);
|
||||
|
||||
for (auto& entry : subgraphs_) {
|
||||
|
Loading…
Reference in New Issue
Block a user