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

Method Compute

tensorflow/core/kernels/constant_op.cc:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void ConstantOp::Compute(OpKernelContext* ctx) {
86 ctx->set_output(0, tensor_);
87 if (TF_PREDICT_FALSE(ctx->track_allocations())) {
88 ctx->record_persistent_memory_allocation(tensor_.AllocatedBytes());
89 }
90}
91
92ConstantOp::~ConstantOp() {}
93

Callers

nothing calls this directly

Calls 10

InvalidArgumentFunction · 0.85
nameFunction · 0.85
output_typeFunction · 0.85
track_allocationsMethod · 0.80
DataTypeStringFunction · 0.50
set_outputMethod · 0.45
AllocatedBytesMethod · 0.45
dimsMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected