- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 602 for func_ops (0.16 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass.cc
public: void runOnOperation() override; }; void InferenceMetricsPass::runOnOperation() { bool has_tpu_partitioned_call = false; ModuleOp module = getOperation(); for (auto func_op : module.getOps<func::FuncOp>()) { func_op->walk( [&](TF::TPUPartitionedCallOp op) { has_tpu_partitioned_call = true; }); if (has_tpu_partitioned_call) break; } std::string has_tpu_partitioned_call_str =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 05 21:24:51 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/manipulate_model_attr.h
#include "llvm/ADT/StringRef.h" #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project namespace mlir { namespace quant { // Adds a new input name to the `inputs` field of the `tf.entry_function` // attribute if the attribute exist in the given function. Otherwise, no // attribute is modified. void AddEntryFunctionInput(StringRef input_name, func::FuncOp func_op); } // namespace quant } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 26 01:13:26 UTC 2023 - 1.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc
EXPECT_TRUE(module_op_ref); return module_op_ref; } mlir::MLIRContext ctx_{}; }; func::FuncOp GetMainFuncOp(ModuleOp module_op) { for (auto func_op : module_op.getOps<func::FuncOp>()) { if (func_op.getSymName() == "main") { return func_op; } } return {}; } TEST_F(ConvertAssetArgsTest, ConvertsSingleAssetArg) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
// function. bool ShouldIncludeInMainFunction(func::FuncOp func_op) { return !func_op.isPrivate() && IsExported(func_op) && IsEntryFunction(func_op); } // Sets a function to be private so it can be referred internally. void SetFunctionPrivate(func::FuncOp func) { func.setVisibility(SymbolTable::Visibility::Private);
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/cc/convert_asset_args.cc
// Returns a list of "tf.entry_function" attribute's "inputs" comma-split // values. // // Example: if `func_op` has attribute `tf.entry_function = {inputs = // "arg0:0,arg1:0"}`, then this function returns `{"arg0:0", "arg1:0"}`. SmallVector<StringRef> GetEntryFunctionInputs(func::FuncOp func_op) { auto entry_function_attr = func_op->getAttrOfType<DictionaryAttr>("tf.entry_function"); SmallVector<StringRef> inputs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.4K bytes - Viewed (0) -
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/tensorflow/transforms/cluster_tf_ops_pass.cc
ModuleOp module_op = getOperation(); SmallVector<func::FuncOp, 4> original_func; for (auto func_op : module_op.getOps<func::FuncOp>()) { original_func.push_back(func_op); } for (auto func_op : original_func) { std::optional<llvm::StringMap<FunctionMetadata>> metadatas = GetFunctionMetadatas(func_op); if (!metadatas) { signalPassFailure(); return;
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/tf2xla/internal/passes/verify_clustering_pass.cc
: public impl::VerifyClusteringPassBase<VerifyClusteringPass> { public: void runOnOperation() override; }; void VerifyClusteringPass::runOnOperation() { Operation* func_op = getOperation(); auto walk_result = func_op->walk([&](Operation* op) { if (!tensorflow::tf2xla::internal::IsInBridgeAcceptableDialects(op)) { std::string error = "op is in dialect " +
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 08 20:33:37 UTC 2023 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tfxla_device_specific_transforms.cc
get_alg_op->erase(); return success(); } void TFXLADeviceSpecificTransforms::runOnOperation() { if (!device_type_.hasValue()) return; auto func_op = getOperation(); auto walk_result = func_op->walk([&](TF::StatelessRandomGetAlgOp op) { if (failed(ConvertGetAlgOp(op))) { op->emitOpError( "Could not convert and remove Device specific information");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 05:56:39 UTC 2023 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils.h
SmallVector<int64_t, 1> layer_norm_slice_shape_; SmallVector<int64_t, 1> layer_norm_size_values_; }; LogicalResult ConvertKerasLSTMLayer(mlir::func::FuncOp func_op, OpBuilder* builder); LogicalResult ConvertKerasLSTMLayer(mlir::func::FuncOp func_op, OpBuilder* builder, bool indy); } // end namespace TFL } // end namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 03 00:14:05 UTC 2023 - 7.3K bytes - Viewed (0)