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

Method Compute

tensorflow/core/kernels/inplace_ops.cc:390–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388 explicit CopyOpBase(OpKernelConstruction* ctx) : OpKernel(ctx) {}
389
390 void Compute(OpKernelContext* ctx) override {
391 auto x = ctx->input(0);
392 Tensor* y;
393 OP_REQUIRES_OK(ctx, ctx->allocate_output(0, x.shape(), &y));
394 OP_REQUIRES_OK(ctx, DoCompute(ctx, x, y));
395 }
396
397 protected:
398 virtual Status DoCompute(OpKernelContext* ctx, const Tensor& x,

Callers

nothing calls this directly

Calls 4

DoComputeFunction · 0.85
allocate_outputMethod · 0.80
inputMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected