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