| 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_; |
nothing calls this directly
no test coverage detected