Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for cpp_config (0.15 sec)

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

    #include "tensorflow/c/experimental/ops/gen/cpp/renderers/cpp_config.h"
    
    #include "absl/strings/str_split.h"
    #include "tensorflow/core/lib/strings/str_util.h"
    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    namespace generator {
    namespace cpp {
    
    CppConfig::CppConfig(const string &category, const string &name_space)
        : category(category),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/gen/cpp/renderers/cpp_config.h

    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    namespace generator {
    namespace cpp {
    
    struct CppConfig {
      string category;
      string unit;
      std::vector<string> namespaces;
    
      explicit CppConfig() = default;
      explicit CppConfig(const string &category,
                         const string &name_space = "tensorflow::ops");
    };
    
    }  // namespace cpp
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 31 00:34:05 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/gen/cpp/cpp_generator.h

    #include "tensorflow/c/experimental/ops/gen/common/controller.h"
    #include "tensorflow/c/experimental/ops/gen/cpp/renderers/cpp_config.h"
    #include "tensorflow/c/experimental/ops/gen/cpp/renderers/renderer_context.h"
    
    namespace tensorflow {
    namespace generator {
    
    class CppGenerator {
     public:
      explicit CppGenerator(cpp::CppConfig cpp_config, PathConfig path_config);
      SourceCode HeaderFileContents() const;
      SourceCode SourceFileContents() const;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 21 18:51:25 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/cpp/cpp_generator.cc

    #include "tensorflow/core/lib/io/path.h"
    
    namespace tensorflow {
    namespace generator {
    
    CppGenerator::CppGenerator(cpp::CppConfig cpp_config, PathConfig path_config)
        : controller_(path_config),
          cpp_config_(cpp_config),
          path_config_(path_config) {}
    
    SourceCode CppGenerator::GenerateOneFile(
        cpp::RendererContext::Mode mode) const {
      SourceCode generated_code;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 21 18:51:25 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/ops/gen/cpp/renderers/namespace_renderer.cc

        : Renderer(context) {}
    
    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
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/ops/gen/cpp/renderers/renderer_context.h

    #include "tensorflow/c/experimental/ops/gen/common/source_code.h"
    #include "tensorflow/c/experimental/ops/gen/cpp/renderers/cpp_config.h"
    
    namespace tensorflow {
    namespace generator {
    namespace cpp {
    
    struct RendererContext {
      enum Mode { kHeader = 0, kSource };
    
      Mode mode;
      SourceCode &code;
      CppConfig cpp_config;
      PathConfig path_config;
    };
    
    }  // namespace cpp
    }  // namespace generator
    }  // namespace tensorflow
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/gen/cpp/cpp_generator_test.cc

          "VarHandleOp",                          // type, shape, list(string) attrs
          "RestoreV2",  // Variadic output-only, list(type) attr
      };
    
      cpp::CppConfig cpp_config(category, name_space);
      PathConfig controller_config(output_dir, source_dir, api_dirs, ops);
      CppGenerator generator(cpp_config, controller_config);
    
      Env *env = Env::Default();
      string golden_dir = io::JoinPath(testing::TensorFlowSrcRoot(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 18 17:02:28 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/ops/gen/cpp/renderers/renderer_test.cc

    #include "tensorflow/c/experimental/ops/gen/common/path_config.h"
    #include "tensorflow/c/experimental/ops/gen/common/source_code.h"
    #include "tensorflow/c/experimental/ops/gen/cpp/renderers/cpp_config.h"
    #include "tensorflow/c/experimental/ops/gen/cpp/renderers/renderer_context.h"
    #include "tensorflow/core/platform/test.h"
    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    namespace generator {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/ops/gen/cpp/renderers/guard_renderer.cc

      string self_path = io::JoinPath(context_.path_config.tf_root_dir,
                                      context_.path_config.tf_output_dir,
                                      context_.cpp_config.unit + "_ops.h");
      string with_underscores(self_path);
      std::replace(with_underscores.begin(), with_underscores.end(), '/', '_');
      std::replace(with_underscores.begin(), with_underscores.end(), '.', '_');
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/ops/gen/cpp/renderers/include_renderer.cc

      BlankLine();
    }
    
    string IncludeRenderer::SelfHeaderPath() const {
      return io::JoinPath(context_.path_config.tf_root_dir,
                          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));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top