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

Method apply

paddle/phi/core/selected_rows_impl.cc:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57 template <typename T>
58 void apply() const {
59 // TODO(Yancey1989): support other place
60 phi::CPUPlace cpu;
61 std::memcpy(dst_->mutable_data<T>(cpu) + dst_offset_,
62 src_.data<T>() + src_offset_,
63 size_ * sizeof(T));
64 }
65
66 DenseTensor* dst_;
67 int64_t dst_offset_;

Calls

no outgoing calls

Tested by

no test coverage detected