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

Function Indent

tensorflow/compiler/xla/service/pattern_matcher.h:211–216  ·  view source on GitHub ↗

Writes a newline and then `indent` spaces. We follow an unintuitive convention in this file's pretty-printers: Indents are performed by the caller, not the callee. For example, if you want to print foo: - bar you'd do: Foo::DescribeTo(std::ostream* os, int64 indent) { os << "foo:"; Indent(os, indent) // Create a newline at the *current* indent level. os << " - "; bar.DescribeTo(os, indent +

Source from the content-addressed store, hash-verified

209// encounter a failing disjunction, so we just handle them as a special case
210// there.)
211inline void Indent(std::ostream* os, int64 indent) {
212 *os << "\n";
213 for (int64 i = 0; i < indent; ++i) {
214 *os << " ";
215 }
216}
217
218// SFINAE template that determines whether T declares a static member
219// kIsTrivialMatcher.

Callers 9

DescribeToImplMethod · 0.70
DescribeToMethod · 0.70
DescribeToImplMethod · 0.70
DescribeToMethod · 0.70
DescribeToMethod · 0.70
DescribeToMethod · 0.70
DescribeToMethod · 0.70
DescribeToMethod · 0.70
source_writer.ccFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected