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

Method ErrorOp

tensorflow/core/common_runtime/testlib_ops.cc:34–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32class ErrorOp : public OpKernel {
33 public:
34 explicit ErrorOp(OpKernelConstruction* ctx) : OpKernel(ctx) {
35 OP_REQUIRES_OK(ctx, ctx->GetAttr("message", &errmsg_));
36 OP_REQUIRES_OK(ctx, ctx->GetAttr("log_error", &log_error_));
37 }
38
39 void Compute(OpKernelContext* ctx) override {
40 // Log only when CancellationManager is set to skip logging when Compute()

Callers

nothing calls this directly

Calls 1

GetAttrMethod · 0.45

Tested by

no test coverage detected