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

Function AssignKernel

paddle/phi/kernels/selected_rows/assign_kernel.cc:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23// as input if needed
24template <typename Context>
25void AssignKernel(const Context& dev_ctx,
26 const SelectedRows& x,
27 SelectedRows* out) {
28 out->set_rows(x.rows());
29 out->set_height(x.height());
30 phi::AssignKernel<Context>(dev_ctx, x.value(), out->mutable_value());
31}
32
33} // namespace phi::sr
34

Callers

nothing calls this directly

Calls 5

set_rowsMethod · 0.45
set_heightMethod · 0.45
heightMethod · 0.45
valueMethod · 0.45
mutable_valueMethod · 0.45

Tested by

no test coverage detected