From ec2f464e5c42fc4ce100e9255711f0114134aead Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Mon, 22 Jul 2024 17:31:36 +1000 Subject: [PATCH] Fix name --- .../core/providers/coreml/builders/impl/slice_op_builder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/coreml/builders/impl/slice_op_builder.cc b/onnxruntime/core/providers/coreml/builders/impl/slice_op_builder.cc index 00a8a39a8c55a..51fc3f2c11c73 100644 --- a/onnxruntime/core/providers/coreml/builders/impl/slice_op_builder.cc +++ b/onnxruntime/core/providers/coreml/builders/impl/slice_op_builder.cc @@ -165,7 +165,7 @@ Status SliceOpBuilder::AddToModelBuilderImpl(ModelBuilder& model_builder, const auto end = model_builder.AddConstant(op->type(), "end", AsSpan(compute_metadata.ends_)); auto stride = model_builder.AddConstant(op->type(), "stride", AsSpan(compute_metadata.steps_)); auto begin_mask = model_builder.AddConstant(op->type(), "begin_mask", AsSpan(begin_mask_values)); - auto end_mask = model_builder.AddConstant(op->type(), "begin", AsSpan(end_mask_values)); + auto end_mask = model_builder.AddConstant(op->type(), "end_mask", AsSpan(end_mask_values)); AddOperationInput(*op, "x", input_defs[0]->Name()); AddOperationInput(*op, "begin", begin);