-
Notifications
You must be signed in to change notification settings - Fork 82
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
[refactoring] add withKey function to utility functions @open sesame 02/21 08:59 #2954
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.
What a huge reduction of lines of code!
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.
Nice refactoring!!
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.
LGTM
d9646f1
to
4686f13
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.
LGTM
@baek2sm Could you rebase? |
The `withKey` function is frequently used to pass keys and values when using nntrainer. however, this function is re-defined in every application example and unit test, resulting in significant code duplication within the project(moreover, it is inconvenient because users of nntrainer have to define this function every time) So I removed the duplicated `withKey` functions from each script and added `withKey` function to utility functions. **Self evaluation:** Build test: [x]Passed [ ]Failed [ ]Skipped Run test: [x]Passed [ ]Failed [ ]Skipped Signed-off-by: Seungbaek Hong <[email protected]>
@dkjung It's done. thanks!! |
The
withKey
function is frequently used to pass keys and values whenusing nntrainer. however, this function is re-defined in every
application example and unit test, resulting in significant code
duplication within the project(moreover, it is inconvenient because
users of nntrainer have to define this function every time)
So I removed the duplicated
withKey
functions from each script andadded
withKey
function to utility functions.Self evaluation:
Build test: [x]Passed [ ]Failed [ ]Skipped
Run test: [x]Passed [ ]Failed [ ]Skipped
Signed-off-by: Seungbaek Hong [email protected]