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

Method ReportError

tensorflow/compiler/xla/client/xla_builder.cc:135–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133XlaBuilder::~XlaBuilder() {}
134
135XlaOp XlaBuilder::ReportError(const Status& error) {
136 CHECK(!error.ok());
137 if (die_immediately_on_error_) {
138 LOG(FATAL) << "error building computation: " << error;
139 }
140
141 if (first_error_.ok()) {
142 first_error_ = error;
143 first_error_backtrace_.CreateCurrent(/*skip_count=*/1);
144 }
145 return XlaOp(this);
146}
147
148XlaOp XlaBuilder::ReportErrorOrReturn(const StatusOr<XlaOp>& op) {
149 if (!first_error_.ok()) {

Callers 15

StatefulRngUniformFunction · 0.45
StatelessRngUniformFunction · 0.45
BroadcastMethod · 0.45
BuildAndNoteErrorMethod · 0.45
TEST_FFunction · 0.45
EpsilonFunction · 0.45
MinPositiveNormalValueFunction · 0.45
ConstantR0WithTypeFunction · 0.45
SVDFunction · 0.45

Calls 3

XlaOpClass · 0.85
CreateCurrentMethod · 0.80
okMethod · 0.45

Tested by 1

TEST_FFunction · 0.36