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

Method ToString

tensorflow/compiler/jit/deadness_analysis.cc:187–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 : Predicate(id), operands_(std::move(operands)) {}
186
187 string ToString() const override {
188 if (operands().empty()) {
189 return "#false";
190 }
191
192 std::vector<string> operands_str;
193 std::transform(operands().begin(), operands().end(),
194 std::back_inserter(operands_str),
195 [](Predicate* pred) { return pred->ToString(); });
196
197 return absl::StrCat("(", absl::StrJoin(operands_str, " | "), ")");
198 }
199
200 Kind kind() const override { return Kind::kOr; }
201 absl::Span<Predicate* const> GetOperands() const override {

Callers 15

TEST_FFunction · 0.45
TESTFunction · 0.45
IntroduceJitterToTensorFunction · 0.45
CopyCPUTensorToDeviceMethod · 0.45
CopyDeviceTensorToCPUMethod · 0.45
ToStringMethod · 0.45
ToStringMethod · 0.45
ToStringMethod · 0.45
ToStringMethod · 0.45
ToStringMethod · 0.45
SetPredicateMethod · 0.45
PopulateFrameMethod · 0.45

Calls 5

transformFunction · 0.50
StrCatFunction · 0.50
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TESTFunction · 0.36