Skip to content

Conversation

@wejoncy
Copy link
Contributor

@wejoncy wejoncy commented Oct 17, 2024

  • cast
  • argmax
  • gelu
  • cast
  • LayerNorm
  • GroupNorm
  • InstanceNorm

Description

Motivation and Context

@wejoncy wejoncy marked this pull request as ready for review October 17, 2024 10:33
Copy link
Contributor

@github-actions github-actions bot left a 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.

Copy link
Contributor

@github-actions github-actions bot left a 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.

Copy link
Contributor

@github-actions github-actions bot left a 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.

Copy link
Contributor

@github-actions github-actions bot left a 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.

 cast argmax gelu cast ln gn in
@wejoncy wejoncy changed the title [CoreML] ML Program more ops [CoreML] ML Program more ops (2/N) Oct 21, 2024
wejoncy and others added 3 commits October 21, 2024 21:07
Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
Copy link
Contributor

@github-actions github-actions bot left a 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.

Copy link
Contributor

@github-actions github-actions bot left a 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

Static variable gtest_LayerNormTest_LayerNorm17_opset_registered_ is never read.
-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

Static variable gtest_InstanceNormalizationOpTest_InstanceNorm_registered_ is never read.
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

This comment appears to contain 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

This comment appears to contain 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

Static variable gtest_InstanceNormalizationOpTest_InstanceNormBatch1_registered_ is never read.
using ReductionOpTestTypes = ::testing::Types<float, MLFloat16>;
TYPED_TEST_SUITE(ReductionOpTest, ReductionOpTestTypes);

TYPED_TEST(ReductionOpTest, ArgMax) {

Check notice

Code scanning / CodeQL

Unused static variable

Static variable gtest_ReductionOpTest_ArgMax_registered_ is never read.
Copy link
Contributor

@github-actions github-actions bot left a 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.

Copy link
Contributor

@github-actions github-actions bot left a 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.

wejoncy and others added 2 commits October 31, 2024 15:50
…r.cc

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants