Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for output_filename (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow_to_stablehlo/python/pywrap_tensorflow_to_stablehlo_lib.cc

      }
      return bytecode;
    }
    
    absl::StatusOr<std::string> ExportModule(ModuleOp module) {
      const std::string output_filename = tensorflow::io::GetTempFilename(".mlir");
      std::string error_msg;
      auto output = openOutputFile(output_filename, &error_msg);
      if (output == nullptr) {
        return absl::UnknownError(
            absl::StrCat("Unable to open output path: ", error_msg));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow_to_stablehlo/tf_to_stablehlo_translate.cc

    }  // namespace
    
    namespace mlir {
    
    namespace {
    // Dump the ModuleOp 'module' to the file specified using 'outputFileName'
    absl::Status ExportModule(ModuleOp module) {
      std::string error_msg;
      auto output = openOutputFile(output_filename, &error_msg);
      if (output == nullptr) {
        return absl::AbortedError(
            absl::StrCat("Unable to write to output path: ", error_msg));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf_mlir_translate_main.cc

                                                     llvm::cl::desc("<input file>"),
                                                     llvm::cl::init("-"));
    
    // NOLINTNEXTLINE
    static llvm::cl::opt<std::string> output_filename(
        "o", llvm::cl::desc("Output filename"), llvm::cl::value_desc("filename"),
        llvm::cl::init("-"));
    
    // NOLINTNEXTLINE
    static llvm::cl::opt<bool> splitInputFile(
        "split-input-file",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/utils/utils.cc

    }
    
    absl::Status ExportFlatbufferOrMlir(const std::string& output_filename,
                                        bool output_mlir, mlir::ModuleOp module,
                                        bool enable_select_tf_ops) {
      std::string error_msg;
      auto output = mlir::openOutputFile(output_filename, &error_msg);
      if (output == nullptr) {
        llvm::errs() << error_msg << '\n';
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 03:47:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/utils/utils.h

        llvm::SourceMgr* source_mgr, mlir::MLIRContext* context);
    
    // Export the module to file, can be either mlir or flatbuffer.
    absl::Status ExportFlatbufferOrMlir(const std::string& output_filename,
                                        bool output_mlir, mlir::ModuleOp module,
                                        bool enable_select_tf_ops);
    
    }  // namespace tac
    }  // namespace TFL
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 03:47:03 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/odml_to_stablehlo.cc

    }
    
    tensorflow::Status ExportModule(mlir::ModuleOp module,
                                    const std::string& output_filename,
                                    bool elide_large_elements_attrs) {
      std::string error_msg;
      auto output = mlir::openOutputFile(output_filename, &error_msg);
      if (output == nullptr) {
        llvm::errs() << error_msg << '\n';
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow_to_stablehlo/README.md

      using '?' for unknown sizes. For example, `input-arg-shapes=1,2::1,?`
      expresses argument shapes `[1,2]`, `[]` and `[1,?]`.
    * `--e`: Elide large elements attrs while dumping the output StableHLO.
    * `--output_filename`: Path to the output file where the textual StableHLO MLIR
      module will be written (default: stdout).
    
    
    ### Examples
    
    * To convert [microsoft/resnet-50](https://huggingface.co/microsoft/resnet-50)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. docs/debugging/inspect/main.go

    	// Calculate the output file name
    	var outputFileName string
    	switch {
    	case strings.HasSuffix(inputFileName, ".enc"):
    		outputFileName = strings.TrimSuffix(inputFileName, ".enc") + ".zip"
    	case strings.HasSuffix(inputFileName, ".zip"):
    		outputFileName = strings.TrimSuffix(inputFileName, ".zip") + ".decrypted.zip"
    	case strings.Contains(inputFileName, ".enc."):
    		outputFileName = strings.Replace(inputFileName, ".enc.", ".", 1) + ".zip"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/py_wrapper/tac_wrapper.cc

    }
    
    std::unique_ptr<mlir::TFL::tac::TacExporter> CreateTfLiteExporter(
        const std::string output_file_name,
        const std::vector<std::string>& target_hardware_backends) {
      mlir::TFL::tac::TfLiteExporter::Options options;
      options.output_mlir = false;
      options.output_file_name = output_file_name;
      options.export_runtime_metadata = false;
      options.target_hardware_backends = target_hardware_backends;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/tac_translate.cc

        const std::vector<std::string>& target_hardware_backends) {
      mlir::TFL::tac::TfLiteExporter::Options options;
      options.output_mlir = output_mlir;
      options.output_file_name = output_file_name;
      options.export_runtime_metadata = export_runtime_metadata;
      options.target_hardware_backends = target_hardware_backends;
      return std::make_unique<mlir::TFL::tac::TfLiteExporter>(options);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 14:25:57 UTC 2022
    - 5.9K bytes
    - Viewed (0)
Back to top