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

[hotfix] Fix if-else condition for FSU #2836

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

DonghakPark
Copy link
Member

Currently, only the forwarding code is distinguished when Train and Swap are enabled.
I also added a case where Swap is turned off and only Inference is turned on.

Self evaluation:

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

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

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

nntrainer/models/neuralnet.cpp Outdated Show resolved Hide resolved
Currently, only the forwarding code is distinguished when Train and Swap are enabled.
I also added a case where Swap is turned off and only Inference is turned on.

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

Signed-off-by: Donghak PARK <[email protected]>
// temperally remain. when we evaluate all for asynch mode, we weill remove
if (exec_mode == ExecutionMode::TRAIN) {
if (exec_mode == ExecutionMode::TRAIN or
(exec_mode == ExecutionMode::INFERENCE and !swap_mode)) {
Copy link
Member

Choose a reason for hiding this comment

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

wow... or and and in C++ code. I feel I'm getting old.

@myungjoo myungjoo merged commit ea8307c into nnstreamer:main Dec 24, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants