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

[FSU][Bugfix] Bugfix on FSU Inference #2852

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

DonghakPark
Copy link
Member

at case of inference there are some bug

  • when set lifespan to tensor swap & non-swap value is exchanged
  • set swap case - forward_func_lifespan
  • set non-swap case - forward_infer_lifespan

Self evaluation:

  1. Build test: [X]Passed [ ]Failed [ ]Skipped
  2. Run test: [X]Passed [ ]Failed [ ]Skipped

at case of inference there are some bug
- when set lifespan to tensor swap & non-swap value is exchanged
- set swap case - forward_func_lifespan
- set non-swap case - forward_infer_lifespan

**Self evaluation:**
1. Build test:	 [X]Passed [ ]Failed [ ]Skipped
2. Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK <[email protected]>
Co-authored-by: Jijoong Moon <[email protected]>
Copy link
Member

@myungjoo myungjoo left a comment

Choose a reason for hiding this comment

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

Need a unit test case that verifies this fix.

Reason 1: prevent regression
Reason 2: verify that this patch is really required for bugfix. (or a case that verifies that this is a bug)

Copy link
Member

@myungjoo myungjoo left a comment

Choose a reason for hiding this comment

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

LGTM. But please consider a unit test case for this. (after this PR)

@DonghakPark
Copy link
Member Author

Need a unit test case that verifies this fix.

Reason 1: prevent regression Reason 2: verify that this patch is really required for bugfix. (or a case that verifies that this is a bug)

good point !!

As suggested, I'll make unit test cases for accurate operation verification.
more detail explain : in the case of INFER_LIFESPAN, all weights are set at once for speed purposes. However, since only the necessary amount needs to be configured during swap option enable, I reported this as a bug.

Copy link
Contributor

@EunjuYang EunjuYang left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@jijoongmoon jijoongmoon left a comment

Choose a reason for hiding this comment

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

LGTM

@jijoongmoon jijoongmoon merged commit caef1fc into nnstreamer:main Jan 2, 2025
23 checks passed
@DonghakPark DonghakPark deleted the FSU_bugfix branch January 13, 2025 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR/READY2MERGE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants