- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 39 for func_20 (0.2 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc
} Value func_input_arg; // Creates a function. func::FuncOp func_op = PrepareFunctionRegister( rewriter, input_val, result_type, unique_func_name, func_input_arg); // Fills the body. Operation* last_op_in_func = quantization_operations_func(rewriter, func_op.getOperation(), func_input_arg, result_type, quant_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc
} }; // Returns true iff func_op has either no Region or the body has no Blocks. bool IsFuncOpEmpty(func::FuncOp func_op) { return func_op->getNumRegions() == 0 || func_op.getBody().empty(); } // Gets the GraphOp from the function op. Returns an empty op iff it doesn't // exist. GraphOp GetGraphOpFromFuncOp(func::FuncOp func_op) { if (IsFuncOpEmpty(func_op)) return {};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:54:52 UTC 2024 - 15.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc
return false; // not a call func::FuncOp func_op = dyn_cast<func::FuncOp>(call.resolveCallable( &symbol_table_collection_)); return IsPureFunction(func_op); } bool OpSideEffectCollector::IsPureFunction(func::FuncOp func_op) const { auto it = is_pure_function_.find(func_op); if (it == is_pure_function_.end()) { bool is_pure = true; is_pure_function_[func_op] = is_pure; // prevent infinite recursion
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 41.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc
for (func::FuncOp func_op : getOperation().getOps<func::FuncOp>()) { if (functions_to_skip.contains(func_op)) { OpBuilder builder(func_op); // Mark this function as being skipped in island outlining. func_op->setAttr(mlir::TF::kSkipIslandOutlining, builder.getBoolAttr(true)); continue; } func_op.walk([&](GraphOp graph) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 27.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc
return {OperandIdx...}; } }; // Finds all op of type `T::OpType` `func_op` and recursively duplicates // constants used at the op's operands at `T::OperandIndices()`. It sequentially // does the same thing for `Ts`. template <typename T, typename... Ts> void DuplicateShapeDeterminingConstants(func::FuncOp func_op) { for (auto op : func_op.getOps<typename T::OpType>()) { RecursivelyDuplicateConstantsForOperands(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 17.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc
OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kArgumentWithUnknownDims); ASSERT_TRUE(module_op); auto func_op = module_op->lookupSymbol<func::FuncOp>("unknown_dims_arg"); ASSERT_THAT(func_op, NotNull()); ASSERT_THAT(func_op.getNumArguments(), Eq(1)); EXPECT_TRUE(HasRankOf(func_op.getArgument(0), /*rank=*/2)); } TEST_F(AttrsAndConstraintsTest, HasRankOfReturnsFalseForUnknownRank) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 17:10:32 UTC 2024 - 22.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc
// we do not overwrite the function argument mapping here. func_op.walk([&](Operation* op) { if (op == func_op) return; for (Region& region : op->getRegions()) { assign_unique_id_to_all(region.getArguments()); } }); llvm::SmallDenseMap<ResourceHandle, int64_t> resource_handle_id_map; func_op.walk([&](Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 28.2K 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 (0) -
test/newinline.go
} bar := func(x int) int { // ERROR "func literal does not escape" "can inline r.func2" return x + func(y int) int { // ERROR "can inline r.func2.1" "can inline r.r.func2.func3" return 2*y + x*z }(x) // ERROR "inlining call to r.func2.1" } return foo(42) + bar(42) // ERROR "inlining call to r.func1" "inlining call to r.func2" "inlining call to r.r.func2.func3" } func s0(x int) int { // ERROR "can inline s0"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 20:15:25 UTC 2023 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc
func::FuncOp func_op = getOperation(); MLIRContext& ctx = getContext(); RewritePatternSet patterns(&ctx); patterns.add<DeferActivationTransposeForAddOp, DeferActivationTransposeForMaxPoolReduceWindowOp, DeferActivationTransposeForMaxOp>(&ctx); if (failed(applyPatternsAndFoldGreedily(func_op, std::move(patterns)))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0)