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

Method Compute

tensorflow/python/framework/test_ops.cc:200–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198 explicit TestAttrOp(OpKernelConstruction* ctx) : OpKernel(ctx) {}
199
200 void Compute(OpKernelContext* ctx) override {
201 Tensor* output;
202 OP_REQUIRES_OK(ctx, ctx->allocate_output(0, TensorShape({}), &output));
203 output->scalar<float>()() = 1.0;
204 }
205};
206
207REGISTER_KERNEL_BUILDER(

Callers

nothing calls this directly

Calls 2

allocate_outputMethod · 0.80
TensorShapeClass · 0.70

Tested by

no test coverage detected