- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 50 for getNumArguments (0.37 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc
void runOnOperation() override; }; void MoveResourceArgsToEnd(func::FuncOp callee) { llvm::DenseMap<BlockArgument, BlockArgument> mapping; unsigned num_params = callee.getNumArguments(); llvm::BitVector removed_params(num_params); // Copy the resource-type parameters to the end. for (unsigned i = 0; i < num_params; ++i) { BlockArgument param = callee.getArgument(i);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
<< init_type; } init_types.insert(init_type); } return success(); } static bool HasAnyTfSavedModelArgAttr(func::FuncOp func) { for (int i = 0, e = func.getNumArguments(); i < e; i++) { if (func.getArgAttr(i, kTfSavedModelIndexPathAttr) || func.getArgAttr(i, "tf_saved_model.bound_input")) { return true; } }
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/tfrt/saved_model/saved_model.cc
input_specs; llvm::SmallVector<llvm::StringRef, 4> input_devices; llvm::SmallVector<mlir::Operation*, 4> bound_inputs; for (unsigned i = 0, e = func.getNumArguments(); i != e; ++i) { if (auto input_index_path = func.getArgAttrOfType<mlir::ArrayAttr>( i, kTfSavedModelIndexPathAttr)) { input_names.push_back(ProcessIndexPath(input_index_path));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.cc
// scatter like ops. template <> LogicalResult MatchBinaryReduceFunction<void>(mlir::Region& function) { Block& body = function.front(); if (body.getNumArguments() != 2) return failure(); mhlo::ReturnOp return_op = dyn_cast<mhlo::ReturnOp>(body.back()); if (!return_op) return failure(); if (return_op.getNumOperands() != 1) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc
if (shared_name.empty() || !IsHashTableOp(&op)) continue; if (!IsResourceInitialized(module_op, &op)) continue; auto it = shared_name_to_arg_idx.insert({shared_name, block.getNumArguments()}); if (it.second) { auto resource_type = op.getResult(0).getType(); op.getResult(0).replaceAllUsesWith( block.addArgument(resource_type, op.getLoc())); AddEntryFunctionInput(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc
func_.getLoc(), output_type, lookup, value); builder.create<mlir::func::ReturnOp>(func_.getLoc(), op.getResult()); } LogicalResult VerifySignature() { if (func_.getNumArguments() != 2) { return func_.emitWarning() << "Invalid number of arguments in the embedding " "matmul composite function"; } if (func_.getFunctionType().getNumResults() != 1) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc
// Verify the quantization specification is expected for quantizing the // current function. bool IsLegalQuantSpecs(func::FuncOp func) { if (func.getName() == quant_specs_.target_func) { return func.getNumArguments() == quant_specs_.input_ranges.size(); } return true; } // Get the min and max values from the quantization specification for the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.2K bytes - Viewed (0) -
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/lite/transforms/prepare_quantize.cc
// current function. bool IsLegalQuantSpecs(func::FuncOp func) { if (func.getName() == quant_specs_.target_func) { return (quant_specs_.disable_set_input_nodes_quantization_params || func.getNumArguments() == quant_specs_.input_ranges.size()); } return true; } // Get the min and max values from the quantization specification for the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.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)