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

Method ReportErrorOrReturn

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

Source from the content-addressed store, hash-verified

146}
147
148XlaOp XlaBuilder::ReportErrorOrReturn(const StatusOr<XlaOp>& op) {
149 if (!first_error_.ok()) {
150 return XlaOp(this);
151 }
152 if (!op.ok()) {
153 return ReportError(op.status());
154 }
155 return op.ValueOrDie();
156}
157
158XlaOp XlaBuilder::ReportErrorOrReturn(
159 const std::function<StatusOr<XlaOp>()>& op_creator) {

Callers 15

AsXlaOpMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
operator>>Function · 0.80
TriangularSolveFunction · 0.80
CholeskyFunction · 0.80
TEST_FFunction · 0.80
TopKFunction · 0.80
TopKWithPartitionsFunction · 0.80
ZerosLikeFunction · 0.80
NanValueFunction · 0.80

Calls 4

XlaOpClass · 0.85
ReportErrorFunction · 0.50
okMethod · 0.45
statusMethod · 0.45

Tested by 1

TEST_FFunction · 0.64