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

Method Compute

oneflow/extension/python/py_kernel_caller.cpp:20–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19namespace oneflow {
20void PyForwardKernel::Compute(user_op::KernelComputeContext* ctx) const {
21 ::oneflow::pyext::PyCompute(ctx, "forward");
22}
23
24void PyBackwardKernel::Compute(user_op::KernelComputeContext* ctx) const {
25 ::oneflow::pyext::PyCompute(ctx, "backward");

Callers

nothing calls this directly

Calls 1

PyComputeFunction · 0.85

Tested by

no test coverage detected