- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for CodeLine (0.12 sec)
-
tensorflow/c/experimental/ops/gen/cpp/renderers/guard_renderer.cc
guard_ = toUpperSnake(with_underscores) + "_"; } void GuardRenderer::Open() { CodeLine("#ifndef $0", guard_); CodeLine("#define $0", guard_); BlankLine(); } void GuardRenderer::Close() { BlankLine(); CodeLine("#endif // $0", guard_); } } // namespace cpp } // namespace generator
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 1.9K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/renderer_test.cc
CommentLine("File level comment."); CodeLine("#include \"header.h\""); BlankLine(); BlockOpen("void TestFunction()"); { Statement("int i = 1"); BlankLine(); BlockOpen("while (i == 1)"); { CommentLine("Do nothing, really...."); CodeLine("#if 0"); Statement("call()"); CodeLine("#endif"); BlockClose(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/namespace_renderer.cc
void NamespaceRenderer::Open() { for (const string& ns : context_.cpp_config.namespaces) { CodeLine("namespace " + ns + " {"); } } void NamespaceRenderer::Close() { for (auto it = context_.cpp_config.namespaces.rbegin(); it != context_.cpp_config.namespaces.rend(); ++it) { CodeLine("} // namespace " + *it); } } } // namespace cpp } // namespace generator
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 1.5K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.h
// Append a line of source code, left-justified (not indented). // Use for preprocessors directives ("#include"), namespaces, etc. Renderer &CodeLine(const string &text); template <typename... Args> Renderer CodeLine(absl::string_view text, const Args &...args) { return CodeLine(absl::Substitute(text, args...)); } // Append a multiline string of source code, left-justified (not indented).
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/include_renderer.cc
context_.path_config.tf_output_dir, context_.cpp_config.unit + "_ops.h"); } void IncludeRenderer::Include(const string &tf_file_path) { CodeLine("#include \"$0\"", io::JoinPath(context_.path_config.tf_prefix_dir, tf_file_path)); } void IncludeRenderer::Headers() { Include("tensorflow/c/eager/abstract_context.h");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 2.1K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.cc
namespace cpp { Renderer::Renderer(RendererContext context) : context_(context) {} Renderer& Renderer::BlankLine() { context_.code.AddLineWithoutIndent(""); return *this; } Renderer& Renderer::CodeLine(const string& text) { context_.code.AddLineWithoutIndent(text); return *this; } Renderer& Renderer::CodeLines(const string& text) { StringPiece trimmed_text(text);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 2.6K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/cpp_file_renderer.cc
: Renderer(context), guard_(context), name_space_(context), includes_(context), ops_(ops) {} void CppFileRenderer::Render() { CodeLines(copyright); BlankLine(); CodeLine(machine_generated); BlankLine(); if (context_.mode == RendererContext::kHeader) { guard_.Open(); } else { includes_.SelfHeader(); } includes_.Headers(); name_space_.Open();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 2.6K bytes - Viewed (0)