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

Method XlaCaseOp

tensorflow/compiler/tf2xla/kernels/case_op.cc:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace tensorflow {
28
29XlaCaseOp::XlaCaseOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) {
30 OP_REQUIRES_OK(ctx, ctx->GetAttr("branches", &branches_));
31 OP_REQUIRES_OK(ctx, ctx->GetAttr("Tin", &input_types_));
32 OP_REQUIRES_OK(ctx, ctx->GetAttr("Tout", &output_types_));
33 if (!ctx->GetAttr(kXlaTokenInputNodesAttrName, &token_input_nodes_).ok()) {
34 has_token_input_output_ = false;
35 } else {
36 has_token_input_output_ = !token_input_nodes_.empty();
37 }
38 if (ctx->HasAttr(kPropagateCompileTimeConsts)) {
39 OP_REQUIRES_OK(ctx, ctx->GetAttr(kPropagateCompileTimeConsts,
40 &propagate_compile_time_consts_));
41 }
42}
43
44namespace {
45

Callers

nothing calls this directly

Calls 4

GetAttrMethod · 0.45
okMethod · 0.45
emptyMethod · 0.45
HasAttrMethod · 0.45

Tested by

no test coverage detected