| 221 | class 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 |
nothing calls this directly
no test coverage detected