- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 143 for FuncOp (0.15 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc
LogicalResult EncapsulateFuncAndSerialize(const std::string& module_name, func::FuncOp entry_func, std::string* serialized_func_module) { ModuleOp module = entry_func->getParentOfType<ModuleOp>(); SymbolTable entry_module_table(module); llvm::SmallVector<func::FuncOp, 4> referenced({entry_func}); // Create a new module to hold func and all referenced functions.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 29.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
builder.getContext())); } // Returns the aliasing argument number of a fucntion return value if it simply // forwards the argument. Otherwise, returns -1. int64_t FindAliasedInput(func::FuncOp func, int64_t return_index) { Value return_val = func.front().getTerminator()->getOperand(return_index); auto maybe_arg = mlir::dyn_cast<BlockArgument>(return_val); if (!maybe_arg) return -1;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/decompose.cc
void DecomposeTFOpsPass::ApplyCanonicalization() { func::FuncOp func = getOperation(); RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); populateCanonicalizationPatterns(func, patterns); (void)applyPatternsAndFoldGreedily(func, std::move(patterns)); } LogicalResult DecomposeTFOpsPass::RewriteUnregisteredTFOps() { func::FuncOp func = getOperation();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc
return true; return false; } class TflToStablehloPass : public mlir::PassWrapper<TflToStablehloPass, mlir::OperationPass<mlir::func::FuncOp>> { public: explicit TflToStablehloPass() : PassWrapper() {} StringRef getArgument() const final { return "tfl-parse-stablehlo-ops"; } StringRef getDescription() const final {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 06:08:43 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
} else if (auto const_op = llvm::dyn_cast<TF::ConstOp>(op)) { return !IsIllegalType(const_op.getOutput().getType()); } // The FuncOp type can contain types that the op's operand and result // types do not contain. if (auto func = dyn_cast<func::FuncOp>(op)) { if (!converter_.isSignatureLegal(func.getFunctionType())) return false; } return converter_.isLegal(op); }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
// will be the operations inside the function body rather than representing // them in the function signature. FunctionType func_type = rewriter.getFunctionType({}, {}); func::FuncOp func = rewriter.create<func::FuncOp>( loc, kImportModelDefaultGraphFuncName, func_type); rewriter.setInsertionPointToStart(func.addEntryBlock()); auto executor_graph =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc
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")) { return (*(func.getOps<mlir::stablehlo::ConvolutionOp>().begin())) .getDimensionNumbers()
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/tpu_resource_partitioning.cc
} } return success(); } namespace { constexpr char kDeviceAttr[] = "device"; constexpr char kFuncDeviceAttr[] = "tf.device"; mlir::Attribute GetDeviceOfResource(mlir::func::FuncOp func, mlir::Value resource) { if (auto* resource_op = resource.getDefiningOp()) { return resource_op->getAttr(kDeviceAttr); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
void PrepareDynamicRangeQuantizePass::removeAllStatsOp(func::FuncOp func) { func.walk([&](quantfork::StatisticsOp stats_op) { stats_op.replaceAllUsesWith(stats_op.getArg()); stats_op.erase(); }); } void PrepareDynamicRangeQuantizePass::runOnOperation() { func::FuncOp func = getOperation(); MLIRContext* ctx = func.getContext(); if (enable_float16_quantization_) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.td
let constructor = "TFDevice::CreateAnnotateParameterReplicationPass()"; } def DeviceAttributeToLaunchPass : Pass<"tf-device-attribute-to-launch", "mlir::func::FuncOp"> { let summary = "Wraps each TF op which has a non-empty device attribute in a tf_device.launch."; let description = [{ This pass wraps TF ops which have a non-empty device attribute in a tf_device.lauch with
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 17 18:52:57 UTC 2024 - 12.5K bytes - Viewed (0)