-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[CoreML] ML Program more ops (2/N) #22480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
80119af to
662298d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
f8f351c to
d66d70d
Compare
cast argmax gelu cast ln gn in
8e9e614 to
92c5677
Compare
onnxruntime/core/providers/coreml/builders/impl/norm_ln_in_gn_op_builder.cc
Show resolved
Hide resolved
onnxruntime/core/providers/coreml/builders/impl/argmax_op_builder.cc
Outdated
Show resolved
Hide resolved
onnxruntime/core/providers/coreml/builders/impl/cast_op_builder.cc
Outdated
Show resolved
Hide resolved
onnxruntime/core/providers/coreml/builders/impl/activation_op_builder.cc
Outdated
Show resolved
Hide resolved
onnxruntime/core/providers/coreml/builders/impl/activation_op_builder.cc
Show resolved
Hide resolved
Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
onnxruntime/core/providers/coreml/builders/impl/activation_op_builder.cc
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
| TEST(LayerNormTest, LayerNorm17_float) { | ||
| OpTester test("LayerNormalization", 17); | ||
| test.AddAttribute<float>("epsilon", 1e-05f); | ||
| TYPED_TEST(LayerNormTest, LayerNorm17_opset) { |
Check notice
Code scanning / CodeQL
Unused static variable
| -1.65898662F, 0.27618144F, 0.64840618F, 0.734399F}; | ||
| test.AddOutput<float>("Y", input_dims, expected_output); | ||
| test.Run(OpTester::ExpectResult::kExpectSuccess, "", {kTensorrtExecutionProvider}); | ||
| TYPED_TEST(InstanceNormalizationOpTest, InstanceNorm) { |
Check notice
Code scanning / CodeQL
Unused static variable
| vector<int64_t> input_dims = {2, 3, 4}; | ||
| test.AddInput<TypeParam>("input", input_dims, GetTypedArray<TypeParam>(input)); | ||
|
|
||
| // vector<float> scale = {2.1F, 0.1F, 1.F}; |
Check notice
Code scanning / CodeQL
Commented-out code
| vector<int64_t> scale_dims = {3}; | ||
| test.AddInput<TypeParam>("scale", scale_dims, GetTypedArray<TypeParam>(scale), is_initializer); | ||
|
|
||
| // vector<float> B = {2.3F, 1.5F, 0.F}; |
Check notice
Code scanning / CodeQL
Commented-out code
| test.AddOutput<float>("Y", input_dims, expected_output); | ||
|
|
||
| test.Run(OpTester::ExpectResult::kExpectSuccess, "", {kTensorrtExecutionProvider}); | ||
| TYPED_TEST(InstanceNormalizationOpTest, InstanceNormBatch1) { |
Check notice
Code scanning / CodeQL
Unused static variable
| using ReductionOpTestTypes = ::testing::Types<float, MLFloat16>; | ||
| TYPED_TEST_SUITE(ReductionOpTest, ReductionOpTestTypes); | ||
|
|
||
| TYPED_TEST(ReductionOpTest, ArgMax) { |
Check notice
Code scanning / CodeQL
Unused static variable
onnxruntime/core/providers/coreml/builders/impl/normalization_op_builder.cc
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
onnxruntime/core/providers/coreml/builders/impl/cast_op_builder.cc
Outdated
Show resolved
Hide resolved
onnxruntime/core/providers/coreml/builders/impl/cast_op_builder.cc
Outdated
Show resolved
Hide resolved
…r.cc Co-authored-by: Scott McKay <skottmckay@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can commit the suggested changes from lintrunner.
onnxruntime/core/providers/coreml/builders/impl/cast_op_builder.cc
Outdated
Show resolved
Hide resolved
…r.cc Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Description
Motivation and Context