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

Method Compute

tensorflow/core/framework/op_compatibility_test.cc:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 public:
33 explicit TestKernel(OpKernelConstruction* context) : OpKernel(context) {}
34 void Compute(OpKernelContext* context) override {
35 Tensor* out_tensor = nullptr;
36 OP_REQUIRES_OK(context, context->allocate_output("ndef", TensorShape({}),
37 &out_tensor));
38 out_tensor->scalar<tstring>()() = SummarizeNodeDef(def());
39 }
40};
41
42class OpCompatibilityTest : public OpsTestBase {

Callers

nothing calls this directly

Calls 3

SummarizeNodeDefFunction · 0.85
allocate_outputMethod · 0.80
TensorShapeClass · 0.70

Tested by

no test coverage detected