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

Method Compute

tensorflow/core/common_runtime/testlib_ops.cc:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 void Compute(OpKernelContext* ctx) override {
40 // Log only when CancellationManager is set to skip logging when Compute()
41 // is called during the optimization phase.
42 if (ctx->cancellation_manager() && log_error_) {
43 LOG(ERROR) << "ErrorOp: " << errmsg_;
44 }
45 ctx->SetStatus(errors::Internal(errmsg_));
46 }
47
48 private:
49 string errmsg_;

Callers

nothing calls this directly

Calls 3

InternalFunction · 0.85
cancellation_managerMethod · 0.45
SetStatusMethod · 0.45

Tested by

no test coverage detected