Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CodeLines (0.2 sec)

  1. tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.h

      //       method convenient for multiline raw strings.
      // Newlines ('\n') are allowed/expected.
      Renderer &CodeLines(const string &text);
      template <typename... Args>
      Renderer CodeLines(absl::string_view text, const Args &...args) {
        return CodeLines(absl::Substitute(text, args...));
      }
    
      // Indent and append a C++ statement.
      // Note: do *not* include a trailing semicolon in the statement text.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.cc

      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);
      str_util::RemoveWhitespaceContext(&trimmed_text);
      for (const string& line : str_util::Split(trimmed_text, '\n')) {
        context_.code.AddLineWithoutIndent(line);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. 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();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top