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

Method Trace

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

Source from the content-addressed store, hash-verified

1056}
1057
1058void XlaBuilder::Trace(const string& tag, XlaOp operand) {
1059 ReportErrorOrReturn([&]() -> StatusOr<XlaOp> {
1060 HloInstructionProto instr;
1061 *instr.mutable_shape() = ShapeUtil::MakeNil().ToProto();
1062 *instr.mutable_literal() = LiteralUtil::CreateR1U8(tag).ToProto();
1063 return AddInstruction(std::move(instr), HloOpcode::kTrace, {operand});
1064 });
1065}
1066
1067XlaOp XlaBuilder::Select(XlaOp pred, XlaOp on_true, XlaOp on_false) {
1068 return ReportErrorOrReturn([&]() -> StatusOr<XlaOp> {

Callers 3

test_profileMethod · 0.45
test_save_profileMethod · 0.45
TraceFunction · 0.45

Calls 2

mutable_shapeMethod · 0.45
ToProtoMethod · 0.45

Tested by 2

test_profileMethod · 0.36
test_save_profileMethod · 0.36