Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for FuncOp (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/passes.h

    CreateDropWhileShapeInvariantInDeviceClusterPass();
    
    // Creates a pass that moves writes to replicate invariant resource variables
    // outside tf_device.replicate op.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateHoistReplicateInvariantResourceWritesPass();
    
    // Transforms functional control flow operations in the TensorFlow dialect to
    // MLIR Control Flow Graph (CFG) form.
    std::unique_ptr<OperationPass<func::FuncOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/quantize_passes.cc

        pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass());
        if (quantization_options.op_set() == OpSet::XLA) {
          pm.addNestedPass<mlir::func::FuncOp>(
              mlir::quant::CreateReplaceCastHacksWithTFXLAOpsPass());
        }
        pm.addNestedPass<mlir::func::FuncOp>(mlir::createCSEPass());
      }
      pm.addNestedPass<mlir::func::FuncOp>(mlir::quant::CreateOptimizePass());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

        pass_manager.addPass(mlir::TFL::CreatePrepareQuantizeVariablesPass());
        pass_manager.addNestedPass<mlir::func::FuncOp>(
            mlir::TFL::CreateQuantizePass(quant_specs));
        pass_manager.addNestedPass<mlir::func::FuncOp>(
            mlir::TFL::CreatePostQuantizePass(emit_quant_adaptor_ops));
      }
      pass_manager.addNestedPass<mlir::func::FuncOp>(
          mlir::TFL::CreateOptimizeOpOrderPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc

      auto func_op = module_op->lookupSymbol<func::FuncOp>("unknown_rank_arg");
      ASSERT_THAT(func_op, NotNull());
      ASSERT_THAT(func_op.getNumArguments(), Eq(1));
    
      EXPECT_FALSE(HasRankOf(func_op.getArgument(0), /*rank=*/1));
    }
    
    TEST_F(AttrsAndConstraintsTest, TryCastSucceeds) {
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleStatic);
      ASSERT_TRUE(module_op);
    
      func::FuncOp main_fn = FindMainFuncOp(*module_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h

    // input and output types by unwrapping quantization parameters.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass();
    
    // Overloading of CreateQuantizePass which takes QuantizationSpecs.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass(
        QuantizationSpecs quant_specs,
        tensorflow::quantization::OpSet target_opset);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

    // moved to the main function. Returns failure() iff validation fails.
    FailureOr<absl::flat_hash_map<std::string, func::FuncOp>> GetInitFuncOps(
        ModuleOp module_op) {
      absl::flat_hash_map<std::string, func::FuncOp> init_func_ops;
    
      for (func::FuncOp init_func_op : GetInitializerFunctions(module_op)) {
        if (failed(ValidateInitFunc(init_func_op))) {
          return failure();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.td

    def QuantizeWeightPass : Pass<"stablehlo-quantize-weight", "mlir::func::FuncOp"> {
      let summary = "Quantizes the weight component of StableHLO graph.";
      let dependentDialects = ["mlir::stablehlo::StablehloDialect"];
      let constructor = "mlir::quant::stablehlo::CreateQuantizeWeightPass()";
    }
    
    def UnfuseMhloBatchNormPass : Pass<"stablehlo-unfuse-mhlo-batch-norm", "mlir::func::FuncOp"> {
      let summary = "Unfuses batch normalization into arithmetic ops.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      // Converts a given FuncOp to a FunctionDef and adds it to the function
      // definition library
      static Status ConvertLibFunction(
          const GraphExportConfig& configs, const Dialect* tf_dialect,
          const SymbolTable& symbol_table, FuncOp function,
          FunctionLibraryDefinition* flib_def,
          llvm::SmallDenseSet<FuncOp>& visited_functions);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

    TEST_F(LiftAsFunctionCallTest, LiftedFunctionSucceeds) {
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleLifted);
      ASSERT_TRUE(module_op);
    
      auto composite_dot_general_fn =
          module_op->lookupSymbol<func::FuncOp>("composite_dot_general_fn_1");
      ASSERT_THAT(composite_dot_general_fn, NotNull());
    
      auto dot_general_op = FindOperationOfType<mlir::stablehlo::DotGeneralOp>(
          composite_dot_general_fn);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      }
    
      pm.addNestedPass<mlir::func::FuncOp>(mlir::TF::CreateLowerQuantizedPass());
      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::quant::stablehlo::CreateConvertTFQuantTypesPass());
    
      if (lower_to_xla_hlo) {
        for (auto& target_pass : custom_legalization_passes) {
          pm.addNestedPass<mlir::func::FuncOp>(std::move(target_pass));
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
Back to top