| 713 | } // namespace |
| 714 | |
| 715 | Status NameRangesForNode(const AttrSlice& attrs, const OpDef& op_def, |
| 716 | NameRangeMap* inputs, NameRangeMap* outputs) { |
| 717 | if (inputs != nullptr) { |
| 718 | TF_RETURN_IF_ERROR( |
| 719 | NameRangesHelper(attrs, op_def.input_arg(), op_def, inputs)); |
| 720 | } |
| 721 | if (outputs != nullptr) { |
| 722 | return NameRangesHelper(attrs, op_def.output_arg(), op_def, outputs); |
| 723 | } |
| 724 | return Status::OK(); |
| 725 | } |
| 726 | |
| 727 | Status NameRangesForNode(const Node& node, const OpDef& op_def, |
| 728 | NameRangeMap* inputs, NameRangeMap* outputs) { |