Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for addNestedPass (0.41 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/quantization/stablehlo/passes/bridge/passes.cc

      pm.addNestedPass<mlir::func::FuncOp>(CreateConvertTFQuantOpsToMHLOPass());
      pm.addNestedPass<mlir::func::FuncOp>(mhlo::createChloLegalizeToHloPass());
      pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass());
      pm.addNestedPass<mlir::func::FuncOp>(
          mhlo::createMhloQuantLegalizeToIntPass());
      pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 17:44:14 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor.cc

          /*legacy_graph_export=*/true));
      add_pass(mlir::TFDevice::CreateLaunchToDeviceAttributePass(
          /*legacy_graph_export=*/true));
      pm.addNestedPass<FuncOp>(mlir::TFTPU::CreateTPUDevicePropagationPass());
      pm.addNestedPass<FuncOp>(mlir::TFTPU::CreateTPUColocateSplitsPass());
      pm.addPass(mlir::createSymbolDCEPass());
      if (tensorflow::GetMlirCommonFlags()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 16 03:41:02 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/tac_module.cc

      if (enable_inliner) pass_manager->addPass(mlir::createInlinerPass());
      pass_manager->addPass(mlir::createSymbolDCEPass());
      pass_manager->addNestedPass<mlir::func::FuncOp>(
          mlir::createCanonicalizerPass());
      pass_manager->addNestedPass<mlir::func::FuncOp>(mlir::createCSEPass());
    }
    }  // namespace
    
    // TODO(b/177376459): We should make this configureable.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/tensorflow/transforms/mlprogram.cc

      pm.addPass(mlir::tf_saved_model::CreateOptimizeGlobalTensorsPass());
    
      pm.addPass(
          mlir::tf_saved_model::CreateConvertSessionInitializerToFunctionPass());
      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::TFDevice::CreateDecomposeResourceOpsPass());
      pm.addPass(mlir::TF::CreateNameAnonymousIteratorsPass());
    
      // This will add regions to IfOp/WhileOp (turning them into IfRegionOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 22:39:15 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/quantize_passes.cc

          case QuantizationComponentSpec::COMPONENT_WEIGHT:
            weight_component = component;
            break;
          default:
            break;
        }
      }
      pass_manager.addNestedPass<mlir::func::FuncOp>(
          mlir::quant::stablehlo::CreateQuantizeWeightPass(weight_component));
    }
    
    }  // namespace quantization
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. 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)
Back to top