Skip to content

Commit 066371d

Browse files
committed
Skip Log for now
1 parent c1af16e commit 066371d

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

onnxruntime/core/providers/coreml/builders/impl/unary_op_builder.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ Status UnaryOpBuilder::AddToModelBuilderImpl(ModelBuilder& model_builder, const
3939
coreml_op_type = "round";
4040
} else if (op_type == "Exp") {
4141
coreml_op_type = "exp";
42-
} else if (op_type == "Log") {
43-
coreml_op_type = "log";
4442
} else {
4543
return ORT_MAKE_STATUS(ONNXRUNTIME, INVALID_ARGUMENT,
4644
"UnaryOpBuilder::AddToModelBuilderImpl, unexpected op: ", op_type);
@@ -84,7 +82,7 @@ Status UnaryOpBuilder::AddToModelBuilderImpl(ModelBuilder& model_builder, const
8482
bool UnaryOpBuilder::IsOpSupportedImpl(const Node& node, const OpBuilderInputParams& input_params,
8583
const logging::Logger& /*logger*/) const {
8684
if (!input_params.create_mlprogram) {
87-
if (node.OpType() == "Erf" || node.OpType() == "Round" || node.OpType() == "Exp" || node.OpType() == "Log") {
85+
if (node.OpType() == "Erf" || node.OpType() == "Round" || node.OpType() == "Exp") {
8886
return false;
8987
}
9088
}

onnxruntime/core/providers/coreml/builders/op_builder_factory.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ static OpBuilderRegistrations CreateOpBuilderRegistrations() {
3131
CreateUnaryOpBuilder("Round", op_registrations);
3232
CreateUnaryOpBuilder("Sqrt", op_registrations);
3333
CreateUnaryOpBuilder("Exp", op_registrations);
34-
CreateUnaryOpBuilder("Log", op_registrations);
3534

3635
// Binary elementwise ops
3736
CreateBinaryOpBuilder("Add", op_registrations);

tools/ci_build/github/apple/coreml_supported_mlprogram_ops.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Keep in sync with doco generated from /docs/execution-providers/CoreML-Execution
2525
|ai.onnx:InstanceNormalization||
2626
|ai.onnx:LayerNormalization||
2727
|ai.onnx:LeakyRelu||
28-
|ai.onnx:Log||
2928
|ai.onnx:MatMul|Only support for transA == 0, alpha == 1.0 and beta == 1.0 is currently implemented.|
3029
|ai.onnx:MaxPool|Only 2D Pool is supported currently. 3D and 5D support can be added if needed.|
3130
|ai.onnx:Max||

0 commit comments

Comments
 (0)