Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for parseSourceFile (0.29 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils_test.cc

     private:
      absl::Status CreateMlirModule(absl::string_view mlir_module_filename) {
        std::string mlir_module_path =
            absl::StrCat(TestDataPath(), mlir_module_filename);
        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 12 04:22:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc

      }
    
      absl::Status CreateMlirModule(std::string mlir_module_filename) {
        std::string mlir_module_path = TestDataPath() + mlir_module_filename;
        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/utils/utils.cc

        mlir::func::registerAllExtensions(registry);
        context->appendDialectRegistry(registry);
        source_mgr->AddNewSourceBuffer(std::move(buffer), llvm::SMLoc());
        return mlir::OwningOpRef<mlir::ModuleOp>(
            mlir::parseSourceFile<mlir::ModuleOp>(*source_mgr, context));
      }
    
      mlir::Location loc =
          mlir::FileLineColLoc::get(context, input_filename, /*line=*/0,
                                    /*column=*/0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 03:47:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v2/cluster_tf_test.cc

      }
    
      absl::Status CreateMlirModule(std::string mlir_module_filename) {
        std::string mlir_module_path = TestDataPath() + mlir_module_filename;
        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops_test.cc

      }
    
      absl::Status CreateMlirModule(std::string mlir_module_filename) {
        std::string mlir_module_path = TestDataPath() + mlir_module_filename;
        mlir_module_ =
            mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_);
        if (!mlir_module_) {
          return absl::Status(
              absl::StatusCode::kNotFound,
              absl::StrCat("Could not find MLIR module at ", mlir_module_path));
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/mlir_tflite_runner.cc

      mlir::MLIRContext context(registry);
    
      llvm::SourceMgr source_mgr;
      source_mgr.AddNewSourceBuffer(std::move(*file_or_err), llvm::SMLoc());
      mlir::OwningOpRef<mlir::ModuleOp> module(
          mlir::parseSourceFile<mlir::ModuleOp>(source_mgr, &context));
      if (!module) return 1;
    
      // TODO(jpienaar): Expand to support inputs.
      mlir::func::FuncOp main = module->lookupSymbol<mlir::func::FuncOp>("main");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc

      llvm::SourceMgr source_mgr;
      source_mgr.AddNewSourceBuffer(std::move(mem_buffer), llvm::SMLoc());
      OwningOpRef<ModuleOp> module_ref =
          parseSourceFile<ModuleOp>(source_mgr, module.getContext());
      // Inline and optimize loaded functions.
      MLIRContext* context = &getContext();
      PassManager pm(context);
      pm.addPass(createInlinerPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

      }
    
      llvm::SourceMgr source_mgr;
      source_mgr.AddNewSourceBuffer(std::move(file), llvm::SMLoc());
      return OwningOpRef<mlir::ModuleOp>(
          parseSourceFile<mlir::ModuleOp>(source_mgr, context));
    }
    
    TEST(ErrorCollectorTest, TessSuccessPass) {
      std::string input_file = tensorflow::GetDataDependencyFilepath(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc

          llvm::MemoryBuffer::getMemBuffer(mlir_input, "test_ir"), llvm::SMLoc());
    
      // Parse a kernel source code into the MLIR Module.
      mlir::OwningOpRef<mlir::ModuleOp> module(
          mlir::parseSourceFile<mlir::ModuleOp>(source_mgr, &context));
      CHECK(module) << "failed to parse mlir module";
    
      // Collect all diagnostics emitted while lowering parsed kernel module.
      std::string diagnostic_str;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

      llvm::SourceMgr source_mgr;
      source_mgr.AddNewSourceBuffer(std::move(memory_buffer), llvm::SMLoc());
      mlir::OwningOpRef<mlir::ModuleOp> module =
          mlir::parseSourceFile<mlir::ModuleOp>(source_mgr, mlir_ctx);
      // The MLIRContext owns the module
      auto module_op = module.release();
    
      // Create the context
      return std::make_unique<TFRDecomposeContext>(module_op);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top