- Sort Score
- Result 10 results
- Languages All
Results 61 - 66 of 66 for getNumArguments (0.31 sec)
-
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
// Store the arg/return attributes as a list rather than uniqueuing during // construction. llvm::SmallVector<mlir::NamedAttrList, 4> arg_attrs; arg_attrs.resize(func.getNumArguments()); llvm::SmallVector<mlir::NamedAttrList, 4> ret_attrs; ret_attrs.resize(func.getNumResults()); auto set_attributes_on_func = [&](Node* node, int64_t index, bool is_arg) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
} bool ShapeInference::InferShapeForDatasetOpCommon(Operation* op, FuncOp f, int64_t max_iterations) { int N = op->getNumOperands() - 1; int M = f.getNumArguments() - N; DCOMMENT_OP(op, "Inferring shape for with N = " << N << " and M = " << M); // Initialize with function input types. auto input_types = llvm::to_vector<1>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
mlir::dyn_cast_or_null<mlir::StringAttr>(dict_attr.get("inputs"))) { str.getValue().split(input_names, ',', /*MaxSplit=*/-1, /*KeepEmpty=*/false); if (input_names.size() != fn.getNumArguments()) { fn.emitWarning() << "invalid entry function specification"; return; } for (const auto& it : llvm::enumerate(fn.getArguments())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
if (it != infos.end() && !it->getSecond().used) { return_op->eraseOperand(entry.index() - skipped_retvals++); } } } llvm::BitVector indices_to_erase(func_op.getNumArguments()); llvm::SmallVector<Type, 4> new_types; int64_t skipped_args = 0; for (auto arg : func_op.getArguments()) { auto it = infos.find(arg.getArgNumber()); if (it != infos.end() && !it->getSecond().used) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
updated_result_types)); }); Region &entry = func.getRegion(); TypeConverter::SignatureConversion signature_conversion( entry.getNumArguments()); for (const BlockArgument &arg : entry.getArguments()) { signature_conversion.addInputs(arg.getArgNumber(), updated_argument_types[arg.getArgNumber()]); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
public: using OpRewritePattern<stablehlo::ReduceWindowOp>::OpRewritePattern; LogicalResult MatchBinaryReduceFunction(Region& function) const { Block& body = function.front(); if (body.getNumArguments() != 2) return failure(); auto return_op = dyn_cast<stablehlo::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: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0)