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

Method BuildAndNoteError

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

Source from the content-addressed store, hash-verified

304}
305
306XlaComputation XlaBuilder::BuildAndNoteError() {
307 DCHECK(parent_builder_ != nullptr);
308 auto build_status = Build();
309 if (!build_status.ok()) {
310 parent_builder_->ReportError(
311 AddStatus(build_status.status(), absl::StrCat("error from: ", name_)));
312 return {};
313 }
314 return build_status.ConsumeValueOrDie();
315}
316
317Status XlaBuilder::GetCurrentStatus() const {
318 if (!first_error_.ok()) {

Callers 9

CompileMethod · 0.80
CreateScalarComputationFunction · 0.80
XLA_TEST_PFunction · 0.80
TEST_FFunction · 0.80
XLA_TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
XLA_TEST_PFunction · 0.80

Calls 6

AddStatusFunction · 0.85
ConsumeValueOrDieMethod · 0.80
StrCatFunction · 0.50
okMethod · 0.45
ReportErrorMethod · 0.45
statusMethod · 0.45

Tested by 6

XLA_TEST_PFunction · 0.64
TEST_FFunction · 0.64
XLA_TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
XLA_TEST_PFunction · 0.64