- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 66 for getNumArguments (0.41 sec)
-
tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc
fused_lstm_func_.dump(); // verify transpose EXPECT_EQ( fused_lstm_func_->getAttrOfType<StringAttr>(kTFImplements).getValue(), convert.GetCompositeOpName()); EXPECT_EQ(fused_lstm_func_.getNumArguments(), 5); EXPECT_EQ(fused_lstm_func_.getFunctionType().getNumResults(), 1); auto transpose_op = fused_lstm_func_.getBody().front().begin(); transpose_op++;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.cc
// return %1, %5 LogicalResult MatchReduceToArgMinMaxType2(mhlo::ReduceOp reduce_op, bool is_argmax) { Block& body = reduce_op.getBody().front(); if (body.getNumArguments() != 4) return failure(); mhlo::ReturnOp return_op = dyn_cast<mhlo::ReturnOp>(body.back()); if (!return_op || return_op.getNumOperands() != 2) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 20:53:17 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_util.cc
} return false; } void ForEachArgConsumedByFallback( mlir::func::FuncOp func, llvm::function_ref<void(int arg_index)> action) { for (int arg_index = 0; arg_index < func.getNumArguments(); ++arg_index) { if (IsArgConsumedByFallback(func, arg_index)) action(arg_index); } } void ForEachArgConsumedByFallback( mlir::ModuleOp module,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 2.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_globals_to_ml_program.cc
// right away, since they might weave through blocks, but we can replace // them with a dummy which DCE can pick up later. llvm::BitVector argsToErase(func.getNumArguments()); for (int i = 0; i < func.getNumArguments(); i++) { if (auto global = tf_saved_model::LookupBoundInputOfType< tf_saved_model::GlobalTensorOp>(func, i, syms)) { OpBuilder builder(func.getBody());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/drop_savedmodel_semantics.cc
auto index_path = builder.getStringAttr(kTfSavedModelIndexPathAttr); module.walk([&](func::FuncOp func) { func->removeAttr(exported_names); for (unsigned i = 0, e = func.getNumArguments(); i != e; ++i) { if (func.getArgAttrOfType<FlatSymbolRefAttr>(i, bound_input)) { func.removeArgAttr(i, bound_input); } func.removeArgAttr(i, index_path); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 13 23:39:10 UTC 2022 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/strip_saved_module_metadata.cc
func->getAttrs(), [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); })); for (auto namedAttr : stripAttrs) { func->removeAttr(namedAttr.getName()); } for (int i = 0; i < func.getNumArguments(); ++i) { llvm::ArrayRef<mlir::NamedAttribute> attrs = mlir::function_interface_impl::getArgAttrs(func, i); auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range( attrs,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/strip_tf_attributes.cc
func->getAttrs(), [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); })); for (auto namedAttr : stripAttrs) { func->removeAttr(namedAttr.getName()); } for (int i = 0; i < func.getNumArguments(); ++i) { llvm::ArrayRef<mlir::NamedAttribute> attrs = mlir::function_interface_impl::getArgAttrs(func, i); auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range( attrs,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_session_initializer_to_function.cc
builder.getStrArrayAttr({name})); builder.setInsertionPointToStart(init.addEntryBlock()); for (func::FuncOp func : tf_saved_model::GetInitializerFunctions(module)) { if (func.getNumArguments() != 0) { session_initializer->emitWarning( "encountered session initializers with arguments"); continue; } // Since we're now calling this function, savedmodel verification
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 01 05:03:09 UTC 2023 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc
llvm::BitVector unused_args(func.getNumArguments()); llvm::BitVector unused_results(func.getNumResults()); llvm::DenseMap<int, int> return_to_operand; llvm::BitVector invariant_returns = GetInvariantReturns(region, func.getNumResults()); llvm::DenseMap<Value, int> argument_to_index; std::vector<int> use_count(func.getNumArguments(), 0);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc
// passing the platform index. FunctionType function_type = func_op.getFunctionType(); ArrayRef<Type> new_input_types = function_type.getInputs().take_back(func_op.getNumArguments() - 1); func_op.setFunctionType( FunctionType::get(ctx, new_input_types, function_type.getResults())); func_op.getBody().eraseArgument(0); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 25 09:43:18 UTC 2024 - 10.9K bytes - Viewed (0)