- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for getNumArguments (0.36 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
if (input_names.size() != main_func.getNumArguments() || output_names.size() != main_func.getNumResults()) { module_op.emitError() << "Number of inputs and outputs in the tf.entry_function attribute " "mismatched. [Input] Expected: " << input_names.size() << ", got: " << main_func.getNumArguments() << ". [Output] Expected: " << output_names.size()
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/tensorflow/transforms/tf_saved_model_freeze_variables.cc
if (!input_shapes_attr) return success(); if (input_shapes_attr.size() != func_op.getNumArguments()) { return func_op->emitError( "Number of arguments and 'tf._input_shapes' " "attribute size do not match. ") << "Num args: " << func_op.getNumArguments() << ", tf._input_shapes size: " << input_shapes_attr.size(); } return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
if (!return_op) return function.emitError() << "expects function '" << function.getName() << "' to have a MLIR ReturnOp"; llvm::SmallVector<ResourceInfo, 4> resources(function.getNumArguments()); auto argument_types = llvm::to_vector<4>(function.getFunctionType().getInputs()); bool has_resources = false; auto add_resource_argument = [&](BlockArgument arg,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
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_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) -
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/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/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/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)