Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for addNestedPass (0.31 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/logging_hooks_test.cc

      TF_ASSERT_OK(env_->GetChildren(test_dir_, &files));
      EXPECT_THAT(files, ::testing::IsEmpty());
    
      TF_ASSERT_OK(CreateMlirModule("dead_const.mlir"));
      PassManager pass_manager(&context_);
      pass_manager.addNestedPass<FuncOp>(mlir::createCanonicalizerPass());
    
      EnablePassIRPrinting(pass_manager, test_group_name_);
    
      LogicalResult pass_status = pass_manager.run(mlir_module_.get());
      EXPECT_TRUE(pass_status.succeeded());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass_test.cc

        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
    
        pm_ = std::make_unique<mlir::PassManager>(&context_);
        pm_->addNestedPass<func::FuncOp>(
            CreateVerifyNoOutsideCompilationMarkersPass());
      }
    
      mlir::LogicalResult Run() { return pm_->run(module_.get()); }
    
     private:
      MLIRContext context_;
      OwningOpRef<ModuleOp> module_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass_test.cc

        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
        pm_ = std::make_unique<mlir::PassManager>(&context_);
        pm_->addNestedPass<mlir::func::FuncOp>(CreateInputLoweringMetricsPass());
      }
    
      bool ModulesEqual(const ModuleOp& module_before,
                        const ModuleOp& module_after) {
        return mlir::OperationEquivalence::isEquivalentTo(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 23 19:42:09 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types_test.cc

        context_.appendDialectRegistry(mlir_registry);
        TF_ASSERT_OK(
            tensorflow::DeserializeMlirModule(module_string, &context_, &module_));
    
        pm_ = std::make_unique<mlir::PassManager>(&context_);
        pm_->addNestedPass<mlir::func::FuncOp>(
            quant::stablehlo::CreateConvertTFQuantTypesPass());
      }
      mlir::LogicalResult Run() { return pm_->run(module_.get()); }
    
     private:
      MLIRContext 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)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_xla_call_module_op_to_bfloat16.cc

          mlir::stablehlo::deserializePortableArtifact(serialized_stablehlo_module,
                                                       &context);
    
      // Convert the StableHLO module to bfloat16.
      PassManager pm(&context);
      pm.addNestedPass<func::FuncOp>(createConvertFuncToBfloat16Pass());
      if (failed(pm.run(stablehlo_module_op.get()))) {
        return absl::InternalError(
            "Failed to convert StableHLO module to bfloat16.");
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

        // For XLA case, weight quantization will be applied for the remaining f32
        // weights even in SRQ.
        pm.addNestedPass<func::FuncOp>(
            CreatePrepareQuantizePass(quant_specs, quantization_method_));
        pm.addNestedPass<func::FuncOp>(
            CreateQuantizePass(quant_specs, target_opset_));
        pm.addNestedPass<func::FuncOp>(CreatePostQuantizePass());
      } else {
        // Apply weight quantization.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization_test.cc

        TF_ASSERT_OK_AND_ASSIGN(module_,
                                GetMlirModuleFromString(module_string, &context_));
    
        pm_ = std::make_unique<mlir::PassManager>(&context_);
        pm_->addNestedPass<mlir::func::FuncOp>(
            mlir::mhlo::CreateVerifyTFXLALegalizationPass(/*legalize_chlo=*/false));
      }
      mlir::LogicalResult Run() { return pm_->run(module_.get()); }
    
     private:
      MLIRContext context_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

      // by aligning with the TF/XLA bridge on the corresponding functionality and
      // reusing their work, perhaps through `LowerToMlProgramAndHlo`.
      pm.addNestedPass<func::FuncOp>(std::make_unique<TFToMhloPass>(
          options.skip_quantization_ops, options.skip_resize,
          options.skip_partitioned_calls));
      pm.addPass(mlir::createCanonicalizerPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.cc

                                                 /*skip_resize=*/false,
                                                 /*skip_partitioned_calls=*/false);
      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::quant::stablehlo::createRemoveShardingCustomCallPass());
      if (failed(pm.run(module_op))) {
        return absl::InternalError("Failed to run legalize TF to StableHLO.");
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 10:49:12 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v1/cluster_tf.cc

    namespace {
    
    void CreateReplicatedBridgePipelineV1(OpPassManager &pm) {
      pm.addPass(mlir::tf2xla::internal::CreateInferenceMetricsPass());
    
      // Convert to unified compilation and replication attributes.
      pm.addNestedPass<FuncOp>(
          mlir::TF::CreateCanonicalizeCompileAndReplicateAttributesPass());
      // Guarantee all functions have one use, which enables more exact shape
      // inference.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:25:18 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top