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

Method ToStringWithLayout

tensorflow/compiler/xla/literal.cc:1099–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1097}
1098
1099string LiteralBase::ToStringWithLayout() const {
1100 std::vector<string> pieces;
1101 CHECK(LayoutUtil::HasLayout(this->shape()));
1102 ToStringHelper(*this, {}, /*print_shape=*/true,
1103 /*print_layout=*/true, &pieces);
1104 return absl::StrJoin(pieces, "");
1105}
1106
1107void LiteralBase::EachCellAsString(
1108 const std::function<void(absl::Span<const int64> indices,

Callers

nothing calls this directly

Calls 2

ToStringHelperFunction · 0.85
shapeMethod · 0.45

Tested by

no test coverage detected