MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CaseOp

Method CaseOp

tensorflow/core/kernels/functional_ops.cc:223–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221class CaseOp : public AsyncOpKernel {
222 public:
223 explicit CaseOp(OpKernelConstruction* ctx) : AsyncOpKernel(ctx) {
224 auto lib = ctx->function_library();
225 OP_REQUIRES(ctx, lib != nullptr, errors::Internal("No function library"));
226 OP_REQUIRES_OK(ctx, ctx->GetAttr("branches", &branch_funcs_));
227 }
228
229 ~CaseOp() override {}
230

Callers

nothing calls this directly

Calls 3

InternalFunction · 0.85
function_libraryMethod · 0.45
GetAttrMethod · 0.45

Tested by

no test coverage detected