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

Function SquareKernel

paddle/phi/kernels/selected_rows/activation_kernel.cc:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <typename T, typename Context>
26void SquareKernel(const Context& dev_ctx,
27 const SelectedRows& x,
28 SelectedRows* out) {
29 out->set_rows(x.rows());
30 out->set_height(x.height());
31 phi::SquareKernel<T, Context>(dev_ctx, x.value(), out->mutable_value());
32}
33
34template <typename T, typename Context>
35void SqrtKernel(const Context& dev_ctx,

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