Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 68 of 68 for addTasks (0.41 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc

      OwningOpRef<ModuleOp> module_ref =
          parseSourceFile<ModuleOp>(source_mgr, module.getContext());
      // Inline and optimize loaded functions.
      MLIRContext* context = &getContext();
      PassManager pm(context);
      pm.addPass(createInlinerPass());
      pm.addNestedPass<func::FuncOp>(createCanonicalizerPass());
      pm.addNestedPass<func::FuncOp>(createCSEPass());
    
      StatusScopedDiagnosticHandler diagnostic_handler(context);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelMapIntegrationTest.groovy

            buildFile << """
            apply plugin: ComponentModelBasePlugin
    
            class Rules extends RuleSource {
                @Mutate
                void addTask(ModelMap<Task> tasks, ComponentSpecContainer components) {
                    tasks.create("validate") {
                        doLast {
                            assert components.withType(FunctionalSourceSet).isEmpty()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      }
      return success();
    }
    
    LogicalResult ApplyVhloToVersionPatterns(ModuleOp module,
                                             const std::string &version) {
      PassManager pm(module.getContext());
      pm.addPass(stablehlo::createVhloToVersionPass({version}));
      if (failed(pm.run(module))) {
        return module->emitError("Failed VHLO to version ") << version;
      }
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc

      if (!error_message.empty()) {
        return errors::InvalidArgument("Failed to open file in ", filename);
      }
      mlir::PassManager pm(module.getContext());
      pm.addPass(mlir::createPrintOpGraphPass(output->os()));
      if (failed(pm.run(module))) {
        return errors::Unknown("Failed to dump Op Graph from MLIR module.");
      }
      output->keep();
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

      pm.enableVerifier(false);
    
      QuantizationSpecs quant_specs;
      quant_specs.inference_type = tensorflow::DT_QINT8;
      quant_specs.disable_per_channel = !enable_per_channel_quantization_;
    
      pm.addPass(CreatePreprocessOpPass(target_opset_, quantization_method_,
                                        enable_per_channel_quantization_));
    
      // Apply activation-weight quantization.
      if (quantization_method_ ==
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

      }
      PassManager pm(func_.getContext());
      ::tensorflow::applyTensorflowAndCLOptions(pm);
      pm.addNestedPass<func::FuncOp>(
          CreateFunctionalToExecutorDialectConversionPass());
      pm.addPass(CreateBreakUpIslandsPass());
    
      // In case of failure, the `diag_handler` converts MLIR errors emitted to
      // the MLIRContext into a tensorflow::Status.
      StatusScopedDiagnosticHandler diag_handler(func_.getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      }
      AddRegionsForTflWhileOp(module);
      AddRegionsForStableHLOOp(module);
      if (!disable_vhlo_to_stablehlo) {
        mlir::PassManager pass_manager(module.getContext());
        pass_manager.addPass(mlir::odml::createLegalizeVhloToStablehloPass());
        auto result = pass_manager.run(module);
        if (failed(result)) {
          return nullptr;
        }
      }
      return OwningOpRef<mlir::ModuleOp>(module);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

          mlir::tf_executor::CreateTFExecutorGraphPruningPass());
      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::CreateExecutorDialectToFunctionalConversionPass());
      if (!include_variables_in_initializers) {
        pm.addPass(
            mlir::tf_saved_model::CreateRemoveVariablesInSessionInitializerPass());
      }
      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::TF::
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top