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

Method Compute

tensorflow/core/kernels/fact_op.cc:83–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82 protected:
83 void Compute(OpKernelContext* context, const char* const facts[],
84 uint64 count) {
85 Tensor* output_tensor = nullptr;
86 OP_REQUIRES_OK(
87 context, context->allocate_output(0, TensorShape({}), &output_tensor));
88 auto output = output_tensor->template scalar<tstring>();
89
90 string coded = facts[context->env()->NowMicros() % count];
91 E(&coded);
92 output() = coded;
93 }
94};
95
96class FactOpKernel1 : public FactOpKernel {

Callers

nothing calls this directly

Calls 5

EFunction · 0.85
allocate_outputMethod · 0.80
TensorShapeClass · 0.50
NowMicrosMethod · 0.45
envMethod · 0.45

Tested by

no test coverage detected