| 698 | } |
| 699 | |
| 700 | Status NameRangesHelper(const AttrSlice& attrs, |
| 701 | const protobuf::RepeatedPtrField<OpDef::ArgDef>& args, |
| 702 | const OpDef& op_def, NameRangeMap* result) { |
| 703 | int start = 0; |
| 704 | int num; |
| 705 | for (const auto& arg : args) { |
| 706 | TF_RETURN_IF_ERROR(ComputeArgRange(attrs, arg, op_def, &num)); |
| 707 | (*result)[arg.name()] = std::make_pair(start, start + num); |
| 708 | start += num; |
| 709 | } |
| 710 | return Status::OK(); |
| 711 | } |
| 712 | |
| 713 | } // namespace |
| 714 |
no test coverage detected