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

Method ForwardDataContent

oneflow/core/kernel/identity_kernel.cpp:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33void IdentityKernel::ForwardDataContent(KernelContext* ctx) const {
34 const Blob* in_blob = ctx->BnInOp2Blob("in");
35 Blob* out_blob = ctx->BnInOp2Blob("out");
36 AutoMemcpy(ctx->stream(), out_blob, in_blob);
37}
38
39void IdentityKernel::ForwardHeader(KernelContext* ctx) const {
40 ctx->BnInOp2Blob("out")->CopyHeaderFrom(ctx->BnInOp2Blob("in"));

Callers

nothing calls this directly

Calls 3

AutoMemcpyFunction · 0.85
BnInOp2BlobMethod · 0.45
streamMethod · 0.45

Tested by

no test coverage detected