Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for addNestedPass (0.22 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/transforms.cc

      // on TPU.
    
      // Optimizes TF graph via cleanups, merges, rewrites, constant folding,
      // and edge case handling where possible.
      pm.addNestedPass<func::FuncOp>(TF::CreateDropWhileShapeInvariantPass());
      pm.addNestedPass<func::FuncOp>(
          tf_executor::CreateTFExecutorGraphPruningPass());
      pm.addNestedPass<func::FuncOp>(
          tf_executor::CreateTFExecutorIslandCoarseningPass());
      pm.addPass(TF::CreateTFFunctionalControlFlowToRegions());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 04:34:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.cc

      pm.addNestedPass<func::FuncOp>(mhlo::createMhloQuantLegalizeToIntPass());
      pm.addNestedPass<func::FuncOp>(createCanonicalizerPass());
      // Integer graph optimization relies on chlo broadcast ops for easier handling
      // of dynamic shapes. Therefore we lower chlo ops after optimization.
      pm.addNestedPass<func::FuncOp>(CreateOptimizeIntGraphPass());
      pm.addNestedPass<func::FuncOp>(mhlo::createChloLegalizeToHloPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor.cc

      // First, we need to convert from functional, to executor dialect.
      pm.addNestedPass<FuncOp>(
          mlir::CreateFunctionalToExecutorDialectConversionPass());
    
      // Do a single pass to split the graph's single island op into an island per
      // op as expected by the following passes.
      pm.addNestedPass<FuncOp>(mlir::TF::CreateSplitIntoIslandPerOpPass());
    
      pm.addNestedPass<FuncOp>(mlir::TFDevice::CreateReplicateToIslandPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops.cc

      pm.addPass(mlir::createSymbolDCEPass());
      pm.addNestedPass<FuncOp>(
          mlir::TFDevice::CreateReplicateInvariantOpHoistingPass());
      pm.addNestedPass<FuncOp>(mlir::TFDevice::CreateEmbeddingProgramKeyPass());
      pm.addPass(mlir::TFTPU::CreateTPUMergeVariablesWithExecutePass());
      pm.addNestedPass<FuncOp>(
          mlir::TFTPU::CreateExtractTPUCopyWithDynamicShapeOpPass());
      pm.addNestedPass<FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_composite_functions.cc

      // Change this to user-given bit width once we have custom configuration.
      options.bit_width_ = 8;
    
      // Insert quantization parameters for weights for ops with `weight_only_ptq`
      // attribute.
      pm.addNestedPass<func::FuncOp>(createInsertWeightParamPass());
    
      // PrepareQuantizePass uses SymbolTable to fetch relevant GEMM ops for
      // determining quantization attributes. This requires module-level context.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

      pm.addPass(CreateTFShapeInferencePass());
      if (options.enable_inliner) {
        pm.addPass(createInlinerPass());
      }
      pm.addPass(createSymbolDCEPass());
      pm.addNestedPass<func::FuncOp>(CreateTFOptimizePass());
      pm.addNestedPass<func::FuncOp>(createCSEPass());
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>> CreateTFOptimizePass() {
      return std::make_unique<TensorFlowOptimizePass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/graph_optimization_pass.cc

      ::tensorflow::applyTensorflowAndCLOptions(pm);
    
      // Run island coarsening before shape inference to allow more exact shape
      // inference using constant folding within islands.
      pm.addNestedPass<func::FuncOp>(
          tf_executor::CreateTFExecutorIslandCoarseningPass());
      pm.addPass(CreateTFShapeInferencePass());
    
      // Assign optimal data layout to layout sensitive operations and delete
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top