MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / ForwardDataContent

Method ForwardDataContent

oneflow/core/kernel/dynamic_reshape_like_kernel.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28};
29
30void DynamicReshapeLikeKernel::ForwardDataContent(KernelContext* ctx) const {
31 const Blob* in_blob = ctx->BnInOp2Blob("x");
32 Blob* out_blob = ctx->BnInOp2Blob("y");
33 AutoMemcpy(ctx->stream(), out_blob, in_blob);
34}
35
36REGISTER_KERNEL(OperatorConf::kDynamicReshapeLikeConf, DynamicReshapeLikeKernel);
37

Callers

nothing calls this directly

Calls 3

AutoMemcpyFunction · 0.85
BnInOp2BlobMethod · 0.45
streamMethod · 0.45

Tested by

no test coverage detected