- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for getNumArguments (0.54 sec)
-
tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc
// one blocks are not encountered in practice. if (!llvm::hasSingleElement(func)) return failure(); IRMapping mapper; for (int i = 0, e = func.getNumArguments(); i != e; ++i) mapper.map(func.getArgument(i), op.getOperand(i + 1)); llvm::SmallVector<Value, 4> updated_results; for (auto& op_to_inline : func.front()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc
} } } } } DenseSet<GlobalTensorOp> frozen_global_tensors; for (auto func : module.getOps<func::FuncOp>()) { llvm::BitVector args_to_erase(func.getNumArguments()); DenseMap<Operation *, llvm::BitVector> remove_operands; OpBuilder builder(func.getBody()); for (BlockArgument val : func.getArguments()) { if (!freezeable[val]) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
StringAttr resource_name_id = builder.getStringAttr(kResourceNameArgAttr); SmallSet<StringRef, 4> resource_names; for (func::FuncOp func : module.getOps<func::FuncOp>()) { for (int i = 0, e = func.getNumArguments(); i < e; ++i) { auto resource_arg = func.getArgAttrOfType<StringAttr>(i, kResourceNameArgAttr); if (!resource_arg) continue; StringRef resource_name = resource_arg.getValue();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc
IRMapping values_in_scope; // Function arguments can appear as operands, so they clone should // be aware of them. assert(subgraph.FuncArguments().size() == new_func.getNumArguments()); for (int i = 0; i < subgraph.FuncArguments().size(); ++i) { Value original_value = subgraph.FuncArguments()[i]; Value new_func_arg = new_func.getArgument(i);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
OpBuilder builder) { if (mlir::isa<FloatType>(input_type)) { return success(); } Block& block = func.front(); builder.setInsertionPointToStart(&block); for (int i = 0; i != block.getNumArguments(); ++i) { Value arg = block.getArgument(0); Type arg_type = arg.getType(); Value new_arg = arg; Location loc = func.getLoc(); if (arg.hasOneUse() && llvm::isa<QuantizeOp>(*arg.user_begin())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0)