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

Method Compute

tensorflow/core/kernels/session_ops.cc:159–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 : OpKernel(context) {}
158
159 void Compute(OpKernelContext* ctx) override {
160 const Tensor& handle = ctx->input(0);
161 const string& name = handle.scalar<tstring>()();
162 OP_REQUIRES_OK(ctx, ctx->session_state()->DeleteTensor(name));
163 }
164
165 TF_DISALLOW_COPY_AND_ASSIGN(DeleteSessionTensorOp);
166};

Callers

nothing calls this directly

Calls 3

DeleteTensorMethod · 0.80
session_stateMethod · 0.80
inputMethod · 0.45

Tested by

no test coverage detected