- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 4,157 for functor (0.17 sec)
-
tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.h
// correct execution). class SideEffectAnalysisInfo { public: SideEffectAnalysisInfo() = default; // Constructs analysis info by analyzing the given function. SideEffectAnalysisInfo(func::FuncOp func_op, const OpSideEffectCollector& op_side_effect_collector, const TF::ResourceAliasAnalysis::Info& alias_analysis,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc
func::FuncOp partition_op; }; // Returns a map that maps the host address to the metadata of the function // for that remote host. The metadata of the function specifies the input // values, result values, result devices and the operations to be included in // the function body. std::optional<llvm::StringMap<FunctionMetadata>> GetFunctionMetadatas( func::FuncOp func_op) { llvm::StringMap<FunctionMetadata> metadatas;
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/insert_main_function.cc
} // Check if a function is an entry function. bool IsEntryFunction(func::FuncOp op) { return op->hasAttr(kEntryFunctionAttr); } // Returns true iff the provided FuncOp is qualified to be included in the main // function. bool ShouldIncludeInMainFunction(func::FuncOp func_op) { return !func_op.isPrivate() && IsExported(func_op) && IsEntryFunction(func_op); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc
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 {}; auto graph_op_range = func_op.front().without_terminator(); if (llvm::hasSingleElement(graph_op_range)) { // The pass runs on a valid tf_executor dialect, so the op should be the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.7K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
// Use, run, and verify TF_Operation* two = ScalarConst(2, host_graph_, s_); TF_Operation* func_feed = Placeholder(host_graph_, s_); TF_Operation* func_op = Use({two, func_feed}); Run({{func_feed, Int32Tensor(3)}}, {{func_op, 0}, {func_op, 1}}, {3, 2}); VerifyFDef(empty_, M({{"feed1_0"}, {"feed2_0"}}), M({{"feed2"}, {"feed1"}}), {{"feed1_0", "feed1"}, {"feed2_0", "feed2"}}, {}); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc
} // Removes the platform index argument from the function. It is equivalent to // removing the first argument from `func_op` (see the comments at // `ContainsPlatformIndexArg`). This function assumes that `func_op` is a valid // function deserialized from XlaCallModule op. void RemovePlatformIndexArg(MLIRContext *ctx, func::FuncOp func_op) { // If there are multiple platforms, the first argument is reserved for
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 25 09:43:18 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
// Builder builder(func_op.getContext()); func_op->setAttr( kTfInputShapesAttr, ArrayAttr::get(func_op.getContext(), updated_input_shapes_attr)); } } // Validates func ops. Returns `failure` if the function is invalid. LogicalResult ValidateFuncOp(func::FuncOp func_op) { auto input_shapes_attr = func_op->getAttrOfType<ArrayAttr>(kTfInputShapesAttr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K 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/transforms/promote_resources_to_args.cc
constexpr char kResourceFunctionMsg[] = "expects function level resource argument"; constexpr char kInvalidResourceMsg[] = "expects resource to be a VarHandleOp or function argument"; constexpr char kResourceNameArgAttr[] = "tf.resource_name"; // Checks if a function has only one block. mlir::LogicalResult CheckSingleBlockFunction(func::FuncOp function) { if (!llvm::hasSingleElement(function)) { return function.emitError()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
result.replaceAllUsesWith(new_op->getResult(next_result_idx++)); } op->erase(); } // Clones a function if it cannot be patched in place. Clone if there are // multiple uses or unknown uses (for external functions). The cloned function // will be marked as private. func::FuncOp CloneFunctionIfNeeded(func::FuncOp func) { ModuleOp module = func->getParentOfType<ModuleOp>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0)