| 149 | } |
| 150 | |
| 151 | Status OpKernel::OutputRange(StringPiece output_name, int* start, |
| 152 | int* stop) const { |
| 153 | const auto result = output_name_map_.find(output_name); |
| 154 | if (result == output_name_map_.end()) { |
| 155 | return errors::InvalidArgument("Unknown output name: ", output_name); |
| 156 | } else { |
| 157 | *start = result->second.first; |
| 158 | *stop = result->second.second; |
| 159 | return Status::OK(); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | Status OpKernel::MakeShape(const Tensor& shape, TensorShape* out) const { |
| 164 | if (!IsLegacyVector(shape.shape())) { |
no test coverage detected