Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for CppGenerator (0.16 sec)

  1. 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)
  2. tensorflow/c/experimental/ops/gen/cpp/cpp_generator.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;
      string HeaderFileName() const;
      string SourceFileName() 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)
  3. tensorflow/c/experimental/ops/gen/cpp/cpp_generator_test.cc

          "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(),
                                       controller_config.tf_output_dir);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 18 17:02:28 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/generate_cpp_main.cc

      string source_dir_;
      string api_dirs_;
      std::vector<string> op_names_;
    };
    
    }  // namespace
    
    int main(int argc, char* argv[]) {
      MainConfig config;
      config.InitMain(&argc, &argv);
      generator::CppGenerator generator(config.CppConfig(), config.PathConfig());
      generator.WriteHeaderFile();
      generator.WriteSourceFile();
      return 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 21 18:51:25 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/ops/gen/README.md

    framework does not impose any design on the language-specific generators, but
    provides some utilities, and the C++ generator is a complete example.
    
    ### C++ Generator
    
    The `CppGenerator` class is the interface to the `cpp/` language directory.
    Given a config, it can generate source code for a .cc or .h file as a string or
    write it to a target file.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 21 18:51:25 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top