Skip to content
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

[circle2circle] Dredd test for fuse Add/Mul to FC and fold Mul #13444

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

seanshpark
Copy link
Contributor

This will add circle2circle dredd test for fuse Add/Mul to FC and fold Mul.

This will add circle2circle dredd test for fuse Add/Mul to FC and fold Mul.

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
@seanshpark
Copy link
Contributor Author

@seanshpark seanshpark requested a review from a team July 16, 2024 05:34
Copy link
Contributor

@shs-park shs-park left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a comment, PTAL
=)

Comment on lines +67 to +69
Add(Net_Mul_FullyConnected_000 PASS fuse_mul_to_fullyconnected_weights fold_mul)
Add(Net_Mul_FullyConnected_001 PASS fuse_mul_to_fullyconnected_weights fold_mul)
Add(Net_Mul_FullyConnected_002 PASS fuse_mul_to_fullyconnected_weights fold_mul)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused parameters..!?

Suggested change
Add(Net_Mul_FullyConnected_000 PASS fuse_mul_to_fullyconnected_weights fold_mul)
Add(Net_Mul_FullyConnected_001 PASS fuse_mul_to_fullyconnected_weights fold_mul)
Add(Net_Mul_FullyConnected_002 PASS fuse_mul_to_fullyconnected_weights fold_mul)
Add(Net_Mul_FullyConnected_000 PASS fuse_mul_to_fullyconnected_weights)
Add(Net_Mul_FullyConnected_001 PASS fuse_mul_to_fullyconnected_weights)
Add(Net_Mul_FullyConnected_002 PASS fuse_mul_to_fullyconnected_weights)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fold_mul is an option needed to constant fold Mul op,

  • this model has FC(Mul(input,scale), weights, bias).
  • fuse_mul_to_fullyconnected_weights will convert to FC(input, Mul(weights, scale), bias)
  • dredd test cannot detect the difference as there exist same number of FC and Mul
  • fold_mul will convert to FC(input, weights', bias) and we can detect absence of Mul

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand.
Thank you for the description =)

Copy link
Contributor

@shs-park shs-park left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
=)

@seanshpark seanshpark merged commit 103ae89 into Samsung:master Jul 17, 2024
6 checks passed
@seanshpark seanshpark deleted the dredd_fuse_mul_add_fc branch July 17, 2024 02:02
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.

2 participants