- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 602 for func_ops (0.2 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc
} return success(); } void LiftHashTableOpsAsArgsPass::runOnOperation() { auto module_op = getOperation(); for (auto func_op : module_op.getOps<func::FuncOp>()) { if (failed(LiftHashTableOpsToArguments(module_op, func_op))) { signalPassFailure(); return; } } } static PassRegistration<LiftHashTableOpsAsArgsPass> pass; } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc
func::FuncOp func_op = getOperation(); MLIRContext* context = func_op.getContext(); RewritePatternSet patterns(context); BFloat16TypeConverter converter; patterns.add<BFloat16TypePattern, BitcastConvertOpPattern>(converter, context); populateFunctionOpInterfaceTypeConversionPattern<func::FuncOp>(patterns,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/verify_quant_legalization.cc
} bool IsMhloUniformQuantizedOp(Operation& op) { return llvm::isa<mhlo::UniformQuantizeOp, mhlo::UniformDequantizeOp>(op); } void VerifyQuantLegalization::runOnOperation() { Operation* func_op = getOperation(); auto walk_result = func_op->walk([&](Operation* op) { // Verify all uq and qint types are lowered. if (llvm::any_of(op->getOperandTypes(), IsQuantType) || llvm::any_of(op->getResultTypes(), IsQuantType) ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc
OpPassManager &func_pm = pm.nest<func::FuncOp>(); // First operates on the executor dialect: // - remove dead islands. // - fuse islands as much as possible. // - materialize the eventual "pass-through" ops by inlining their content. func_pm.addPass(tf_executor::CreateTFExecutorGraphPruningPass()); func_pm.addPass(tf_executor::CreateTFExecutorIslandCoarseningPass());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.cc
pm.addPass(mlir::TFDevice::CreateDecomposeResourceOpsInClusterPass()); // Encode this in its own scope so that func_pm is not mistakenly used // later on. { OpPassManager& func_pm = pm.nest<FuncOp>(); func_pm.addPass(mlir::TFTPU::CreateTPUHostComputationExpansionPass()); func_pm.addPass(mlir::TFTPU::CreateTPUUpdateEmbeddingEnqueueOpInputsPass()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 16:09:14 UTC 2024 - 11.2K bytes - Viewed (1) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/unfreeze_constants.cc
// functions and avoid converting ConstOps inside initializer functions. for (auto func_op : module_op.getOps<func::FuncOp>()) { // Do not unfreeze constants under these functions. if (func_op.getSymName().contains("while_body")) continue; if (func_op.getSymName().contains("while_cond")) continue; absl::c_copy_if(func_op.getOps<TF::ConstOp>(), std::back_inserter(target_const_ops),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 16 15:04:53 UTC 2023 - 14K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
// tf_device.replicate. Operation* FindCompilePredecessor(Operation* func_op, Operation* preprocess_op) { llvm::DenseSet<Block*> blocks = GetAllBlocksBetween(preprocess_op, func_op); llvm::DenseMap<Block*, Operation*> scope; Operation* o = preprocess_op; while (o && o != func_op) { scope[o->getBlock()] = o; o = o->getParentOp(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.cc
absl::flat_hash_set<FunctionName> existing_func_names; module_op->walk([&](func::FuncOp func_op) { FunctionName func_name = func_op.getSymName().str(); existing_func_names.insert(func_name); // We may retrieve the original function's name from the attribute. // Functions without this attribute are ignored. auto original_func_name = func_op->getAttrOfType<StringAttr>("tf._original_func_name"); if (original_func_name) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/prepare_quantize.cc
auto func_op_quant_scale_spec = GetStableHloQuantConstraints; for (auto func_op : module_op.getOps<func::FuncOp>()) { // The function might contain more stats ops than required, and it will // introduce requantize if the calibration stats have conflicts. This tries // to remove all the redundant stats ops. RemoveRedundantStatsOps(func_op, func_op_quant_spec, func_op_quant_scale_spec);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 03 05:11:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_xla_call_module_op_to_bfloat16.cc
private: void runOnOperation() override; }; void ConvertXlaCallModuleOpToBfloat16Pass::runOnOperation() { Operation* func_op = getOperation(); SymbolTableCollection symbol_table; OpBuilder builder(&getContext()); auto result = func_op->walk([&](TF::XlaCallModuleOp op) { // Converts the serialized StableHLO module to bfloat16. auto result =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 5.6K bytes - Viewed (0)