Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AddLineWithIndent (0.12 sec)

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

        context_.code.AddLineWithIndent(text);
      } else {
        context_.code.AddLineWithIndent(absl::StrCat(text, ";"));
      }
      return *this;
    }
    
    Renderer& Renderer::TFStatement(const string& text) {
      return Statement(absl::Substitute("TF_RETURN_IF_ERROR($0)", text));
    }
    
    Renderer& Renderer::CommentLine(const string& text) {
      context_.code.AddLineWithIndent(absl::StrCat("// ", text));
      return *this;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/gen/common/source_code.h

    namespace tensorflow {
    namespace generator {
    
    class SourceCode {
     public:
      string Render() const;
      void SetSpacesPerIndent(int spaces_per_indent) {
        spaces_per_indent_ = spaces_per_indent;
      }
    
      void AddLineWithIndent(const string &line);
      void AddLineWithoutIndent(const string &line);
      void AddBlankLine();
      void IncreaseIndent();
      void DecreaseIndent();
    
     private:
      struct Line {
        int indent;
        string text;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/gen/common/source_code.cc

      string code;
      for (const Line& line : lines_) {
        absl::StrAppend(&code, string(line.indent * spaces_per_indent_, ' '),
                        line.text, "\n");
      }
      return code;
    }
    
    void SourceCode::AddLineWithIndent(const string& line) {
      ValidateAndAddLine(current_indent_, line);
    }
    
    void SourceCode::AddLineWithoutIndent(const string& line) {
      ValidateAndAddLine(0, line);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top