Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for module_string (0.19 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass_test.cc

    namespace {
    
    using mlir::mhlo::test::GetMlirModuleFromString;
    
    class VerifyClusteringPassTest : public testing::Test {
     protected:
      void CreateModule(const char* module_string) {
        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
        pm_ = std::make_unique<mlir::PassManager>(&context_);
        pm_->addNestedPass<mlir::func::FuncOp>(CreateVerifyClusteringPass());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 17:03:53 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_test.cc

    absl::StatusOr<OwningOpRef<ModuleOp>> GetMlirModuleFromString(
        absl::string_view module_string, MLIRContext* context) {
      mlir::DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
    
      OwningOpRef<ModuleOp> mlir_module;
      auto status =
          tensorflow::DeserializeMlirModule(module_string, context, &mlir_module);
      if (!status.ok()) {
        return status;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/test_utils.cc

    absl::StatusOr<OwningOpRef<ModuleOp>> GetMlirModuleFromString(
        absl::string_view module_string, MLIRContext* context) {
      DialectRegistry mlir_registry;
      RegisterCommonToolingDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
    
      OwningOpRef<ModuleOp> mlir_module;
      auto status =
          tensorflow::DeserializeMlirModule(module_string, context, &mlir_module);
      if (!status.ok()) {
        return status;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass_test.cc

    using ::mlir::mhlo::test::GetMlirModuleFromString;
    
    class VerifyNoOutsideCompilationMarkersPassTest : public ::testing::Test {
     protected:
      void CreateModule(const char* module_string) {
        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
    
        pm_ = std::make_unique<mlir::PassManager>(&context_);
        pm_->addNestedPass<func::FuncOp>(
            CreateVerifyNoOutsideCompilationMarkersPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass_test.cc

        "/tensorflow/core/tf2xla/api/v2/dynamism_function_counter";
    
    class InputLoweringMetricsPassTest : public testing::Test {
     protected:
      void CreateModule(const char* module_string) {
        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
        pm_ = std::make_unique<mlir::PassManager>(&context_);
        pm_->addNestedPass<mlir::func::FuncOp>(CreateInputLoweringMetricsPass());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 19:42:09 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

     public:
      void SetUp() override {
        tensorflow::XlaOpRegistry::RegisterCompilationKernels();
      }
    
      Status CreateMlirModule(std::string module_string = kMlirModuleStr) {
        TF_ASSIGN_OR_RETURN(
            module_, test::GetMlirModuleFromString(module_string, &context_));
    
        context_.loadAllAvailableDialects();
        return absl::OkStatus();
      }
    
      Status LegalizeSingleOp(Operation& op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types_test.cc

    class LegalizeTfTypesTest : public Test {
     protected:
      void CreateModule(const char* module_string) {
        DialectRegistry mlir_registry;
        RegisterCommonToolingDialects(mlir_registry);
        context_.appendDialectRegistry(mlir_registry);
        TF_ASSERT_OK(
            tensorflow::DeserializeMlirModule(module_string, &context_, &module_));
    
        pm_ = std::make_unique<mlir::PassManager>(&context_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 09:05:02 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass_test.cc

    class InferenceMetricsPassTest : public ::testing::Test {
     protected:
      void CreateModule(const char* module_string) {
        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
    
        pm_ = std::make_unique<mlir::PassManager>(&context_);
        pm_->addPass(CreateInferenceMetricsPass());
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization_test.cc

    class VerifyTfxlaLegalizationTest : public ::testing::Test {
     protected:
      void CreateModule(const char* module_string) {
        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
    
        pm_ = std::make_unique<mlir::PassManager>(&context_);
        pm_->addNestedPass<mlir::func::FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/materialize_mlir_passthrough_op.cc

    };
    
    void MaterializePassthroughOpPass::runOnOperation() {
      getOperation().walk([](TF::MlirPassthroughOp op) {
        std::string module_string(op.getMlirModule());
        // Parse the module.
        auto nested_module =
            parseSourceString<ModuleOp>(module_string, op.getContext());
        if (!nested_module) {
          op->emitError() << "could not parse attached MLIR module";
          return;
        }
        func::FuncOp main =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 4.2K bytes
    - Viewed (0)
Back to top