- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 170 for modulemap (0.13 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc
return metadatas; } // Creates functions in the given module using the given FunctionMetadatas. void CreateFunctions(ModuleOp module_op, llvm::StringMap<FunctionMetadata> &metadatas) { MLIRContext *context = module_op.getContext(); SymbolTable symbol_table(module_op); for (auto &iter : metadatas) { llvm::StringRef host = iter.first(); FunctionMetadata &metadata = iter.second;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc
RewritePatternSet patterns(ctx); ModuleOp module_op = getOperation(); populateWithGenerated(patterns); patterns.add<PreprocessConstantOp>(ctx, op_set_, quantization_method_, enable_per_channel_quantization_); FrozenRewritePatternSet frozen_patterns(std::move(patterns)); for (auto func : module_op.getOps<func::FuncOp>()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc
RewritePatternSet patterns(ctx); ModuleOp module_op = getOperation(); populateWithGenerated(patterns); patterns.add<PrepareDRQQuantizableOp>(ctx, quant_specs_, op_set_, enable_per_channel_quantization_); FrozenRewritePatternSet frozen_patterns(std::move(patterns)); for (auto func : module_op.getOps<func::FuncOp>()) { removeAllStatsOp(func);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.cc
mlir::ModuleOp module_op, mlir::MLIRContext* context, std::optional<Session*> session, const bool run_tf_to_stablehlo, const bool deserialize_xla_call_module, llvm::ArrayRef<llvm::ArrayRef<int64_t>> input_arg_shapes) { mlir::PassManager pm_before_freezing_variables(context); mlir::StatusScopedDiagnosticHandler statusHandler(module_op.getContext(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc
// parallel. for (auto func : module_op.getOps<func::FuncOp>()) { if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) { func.emitError() << "quant-quantize-weights failed."; signalPassFailure(); } } } } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateQuantizeWeightsPass(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 11.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc
CHECK(device_); } absl::StatusOr<OwningOpRef<ModuleOp>> ReplaceFuncArgsByConstant( absl::string_view program, absl::Span<const xla::Literal* const> arguments, bool use_mhlo_const = false) { auto module_op = parseSourceString<ModuleOp>(program, ctx_.get()); CHECK(module_op); auto func_op = llvm::dyn_cast<func::FuncOp>( *module_op->getBodyRegion().getOps().begin()); if (!func_op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 03 01:03:21 UTC 2024 - 35.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc
// rhs. static int64_t GetDefaultQuantizationDimension(TF::XlaCallModuleOp op) { const StringRef function_name = GetEntryFunctionName(op); const auto module_op = op->getParentOfType<ModuleOp>(); const SymbolTable symbol_table(module_op); func::FuncOp func = symbol_table.lookup<func::FuncOp>(function_name); if (function_name.contains("conv")) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
return success(); } // Validates ModuleOp. Returns `failure` if the module op is invalid. LogicalResult ValidateModule(ModuleOp module_op) { for (auto func_op : module_op.getOps<func::FuncOp>()) { if (failed(ValidateFuncOp(func_op))) { return failure(); } } return success(); } } // namespace LogicalResult FreezeVariables(ModuleOp module, tensorflow::Session* session) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelMapIntegrationTest.groovy
fails() and: failure.assertHasCause("Exception thrown while executing model rule: RulePlugin#mutate(ModelMap<Task>, ModelMap<Person>)") failure.assertHasCause("Attempt to modify a read only view of model element 'people' of type 'ModelMap<Person>' given to rule RulePlugin#mutate(ModelMap<Task>, ModelMap<Person>)") } def "cannot mutate when used as subject of validate rule"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 13.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
const EntryFuncBodyQuantizationPattern& body_rewrite_pattern, const Method& quantization_method) { const ModuleOp module_op = xla_call_module_op->getParentOfType<ModuleOp>(); func::FuncOp entry_func_op = GetEntryFuncOp(xla_call_module_op, SymbolTable(module_op)); QuantizeEntryFuncOp(ctx, rewriter, xla_call_module_op, entry_func_op, body_rewrite_pattern, quantization_method);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0)