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

Method Compute

tensorflow/core/kernels/identity_n_op.h:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 explicit IdentityNOp(OpKernelConstruction* context) : OpKernel(context) {}
26
27 void Compute(OpKernelContext* context) override {
28 OpInputList input;
29 OpOutputList output;
30 OP_REQUIRES_OK(context, context->input_list("input", &input));
31 OP_REQUIRES_OK(context, context->output_list("output", &output));
32 OP_REQUIRES(context, input.size() == output.size(),
33 errors::InvalidArgument("Input and output counts must match"));
34 for (int i = 0; i < input.size(); ++i) {
35 output.set(i, input[i]);
36 }
37 }
38
39 bool IsExpensive() override { return false; }
40};

Callers

nothing calls this directly

Calls 5

InvalidArgumentFunction · 0.85
output_listMethod · 0.80
input_listMethod · 0.45
sizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected