MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / EmplaceBackOutputs

Method EmplaceBackOutputs

paddle/phi/core/kernel_context.cc:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void 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
69void KernelContext::EmplaceBackOutputsWithoutSetRange(
70 paddle::small_vector<TensorBase*> outputs) {

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.45
emplace_backMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected