- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 143 for FuncOp (0.35 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc
// moved to the main function. Returns failure() iff validation fails. FailureOr<absl::flat_hash_map<std::string, func::FuncOp>> GetInitFuncOps( ModuleOp module_op) { absl::flat_hash_map<std::string, func::FuncOp> init_func_ops; for (func::FuncOp init_func_op : GetInitializerFunctions(module_op)) { if (failed(ValidateInitFunc(init_func_op))) { return failure(); }
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/quantization/tensorflow/passes/merge_save_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 {}; auto graph_op_range = func_op.front().without_terminator();
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/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
void EliminateUnusedResultsForIfCase(Operation *op, ArrayRef<func::FuncOp> branches) { // Clone branch functions if needed since we will be mutating them. SmallVector<func::FuncOp, 2> cloned_branches; cloned_branches.reserve(branches.size()); for (func::FuncOp func : branches) { func::FuncOp cloned = CloneFunctionIfNeeded(func); cloned_branches.push_back(cloned);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/pick_subgraphs.cc
// A subgraph may associate with 1...n FuncOp, and each FuncOp may correspond // with different hardwares. struct Subgraph { // The call can be thought as an "API". func::CallOp call; // available_choces can be viewed as "real implementation" assosicated with // the hardware. std::unordered_map<InferenceDeviceType, func::FuncOp, InferenceDeviceType::inference_device_type_hash>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 24 15:10:02 UTC 2022 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.td
def QuantizeWeightPass : Pass<"stablehlo-quantize-weight", "mlir::func::FuncOp"> { let summary = "Quantizes the weight component of StableHLO graph."; let dependentDialects = ["mlir::stablehlo::StablehloDialect"]; let constructor = "mlir::quant::stablehlo::CreateQuantizeWeightPass()"; } def UnfuseMhloBatchNormPass : Pass<"stablehlo-unfuse-mhlo-batch-norm", "mlir::func::FuncOp"> { let summary = "Unfuses batch normalization into arithmetic ops.";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 10.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
} return init_func_ops; } func::FuncOp GetInitializerFunction(ModuleOp module_op, const StringRef initializer_type) { SmallVector<func::FuncOp, 2> init_func_ops = GetInitializerFunctions(module_op); auto init_func_itr = absl::c_find_if( init_func_ops, [initializer_type](const func::FuncOp init_func_op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/tftext_utils.cc
StringRef(content.data(), content.size())); } inline TensorType GetInputType(func::FuncOp func, int idx) { return mlir::dyn_cast_or_null<TensorType>( func.getFunctionType().getInput(idx)); } inline TensorType GetResultType(func::FuncOp func, int idx) { return mlir::dyn_cast_or_null<TensorType>( func.getFunctionType().getResult(idx)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/call_graph_util_test.cc
ASSERT_TRUE(result); EXPECT_EQ(noinline_pcall_ops.size(), 2); auto func = llvm::dyn_cast<mlir::func::FuncOp>(noinline_pcall_ops[0]->getParentOp()); ASSERT_TRUE(func); EXPECT_EQ(func.getSymName(), "while_body_func"); func = llvm::dyn_cast<mlir::func::FuncOp>(noinline_pcall_ops[1]->getParentOp()); ASSERT_TRUE(func); EXPECT_EQ(func.getSymName(), "outer_stateful_pcall_func");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 20 04:39:18 UTC 2023 - 11.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc
)mlir"; TEST_F(IsOpQuantizableStableHloTest, ConstantOpQuantizable) { OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleConstantAdd); ASSERT_TRUE(module_op); auto test_func = module_op->lookupSymbol<func::FuncOp>("constant_add"); ASSERT_THAT(test_func, NotNull()); auto constant_op = FindOperationOfType<mlir::stablehlo::ConstantOp>(test_func); EXPECT_TRUE(IsOpQuantizableStableHlo(constant_op)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 04 07:19:09 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc
void ConvertTFImplements(func::FuncOp func, StringAttr attr); void ConvertTFImplementsWithAttributes(func::FuncOp func, FuncAttr attr); void ConvertTFAPIImplements(func::FuncOp func, StringAttr attr, ModuleOp module); void runOnOperation() override; }; LogicalResult CheckFusableLayerNormalizedLstmCellSimple( func::FuncOp lstm_func) { for (int i = 0; i < 5; ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0)