| 56 | } |
| 57 | |
| 58 | void KernelContext::EmplaceBackOutputs( |
| 59 | paddle::small_vector<TensorBase*> outputs) { |
| 60 | int index = static_cast<int>(outputs_.size()); |
| 61 | // Record the start and end index of the input |
| 62 | output_range_.emplace_back( |
| 63 | std::pair<int, int>(index, index + outputs.size())); |
| 64 | outputs_.insert(outputs_.end(), |
| 65 | std::make_move_iterator(outputs.begin()), |
| 66 | std::make_move_iterator(outputs.end())); |
| 67 | } |
| 68 | |
| 69 | void KernelContext::EmplaceBackOutputsWithoutSetRange( |
| 70 | paddle::small_vector<TensorBase*> outputs) { |
nothing calls this directly
no test coverage detected