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

Function AssignRawKernel

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

Source from the content-addressed store, hash-verified

29
30template <typename Context>
31void AssignRawKernel(const Context& dev_ctx,
32 const optional<DenseTensor>& x,
33 DenseTensor* out) {
34 if (x) {
35 if (!x->IsInitialized()) {
36 return;
37 }
38 auto& x_tensor = *x.get_ptr();
39 AssignKernel<Context>(dev_ctx, x_tensor, out);
40 }
41}
42
43// Note: use `const optional<std::vector<const DenseTensor*>&> x`
44// as input if needed

Callers

nothing calls this directly

Calls 2

IsInitializedMethod · 0.45
get_ptrMethod · 0.45

Tested by

no test coverage detected