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

Method Compute

tensorflow/python/framework/test_ops.cc:135–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 : OpKernel(ctx), graph_def_version_(ctx->graph_def_version()) {}
134
135 void Compute(OpKernelContext* ctx) override {
136 Tensor* output = nullptr;
137 OP_REQUIRES_OK(ctx, ctx->allocate_output(0, TensorShape({}), &output));
138 output->scalar<int>()() = graph_def_version_;
139 }
140
141 private:
142 const int graph_def_version_;

Callers

nothing calls this directly

Calls 2

allocate_outputMethod · 0.80
TensorShapeClass · 0.70

Tested by

no test coverage detected