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

Method Compute

tensorflow/core/kernels/session_ops.cc:116–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 : OpKernel(context) {}
115
116 void Compute(OpKernelContext* ctx) override {
117 const Tensor& handle = ctx->input(0);
118 const string& name = handle.scalar<tstring>()();
119 Tensor val;
120 OP_REQUIRES_OK(ctx, ctx->session_state()->GetTensor(name, &val));
121 ctx->set_output(0, val);
122 }
123
124 TF_DISALLOW_COPY_AND_ASSIGN(GetSessionTensorOp);
125};

Callers

nothing calls this directly

Calls 4

session_stateMethod · 0.80
inputMethod · 0.45
GetTensorMethod · 0.45
set_outputMethod · 0.45

Tested by

no test coverage detected