-
Notifications
You must be signed in to change notification settings - Fork 77
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
[Graph] rename variable & function names for clarity @open sesame 11/07 21:30 #2789
Conversation
📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2789. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/. |
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.
@baek2sm, 💯 All CI checkers are successfully verified. Thanks.
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.
I see. Nice catch!
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 work! I think this change is good to not get confused.
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.
Currently, InPlaceType is divided into NONE, RESTRICTING, and NON_RESTRICTING.
In my opinion, I think DISABLED is clearer than NONE.
How about using DISABLED, RESTRICTING, and NON_RESTRICTING?
enum class InPlaceType{
DISABLED, /**< layer is not inplace */
RESTRICTING, /**< layer is in-place and does place restriction on layers
ahead of it to be in-place */
NON_RESTRICTING /**< layer is in-place and does NOT place restriction on the
layers ahead of it to be in-place */
};
@SeoHyungjun Hmm.. since this enum is "TYPE" of inplace, wouldn't it be more appropriate to use "none" rather than "disabled"? |
currently, same term 'InPlace' means different things depending on context. it could refer to a boolean type value indicating whether in-place operation is supported, or it could refer an enum type value representing the in-place type(type: None, Restriction, Non-Restriction). To clarify this distinction, variables and functions related to the in-place type have been renamed from 'InPlace' to 'InPlaceType'. Similarly, both functions for getting/setting whether it supports inplace (boolean) and those for getting/setting the type of inplace (enum) use the same name, "executeInPlace". To clarify this, I changed the names as follows.. - set the InPlace flag (boolean) : 'setInPlace'. - get the InPlace flag (boolean) : 'getInplace'. - set the type of InPlace (enum) : 'setInPlaceType' - get the type of InPlace (enum) : 'getInPlaceType.' **Self evaluation:** 1. Build test: [X]Passed [ ]Failed [ ]Skipped 2. Run test: [X]Passed [ ]Failed [ ]Skipped Signed-off-by: Seungbaek Hong <[email protected]>
2843c4b
to
9d93c3c
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.
@baek2sm, 💯 All CI checkers are successfully verified. Thanks.
currently, same term 'InPlace' is used with different meanings by script.
it could refer to a boolean type value indicating whether in-place operation is supported, or it could refer an enum type value representing the in-place type(type: None, Restriction, Non-Restriction).
To clarify this distinction, variables and functions related to the in-place type have been renamed from 'InPlace' to 'InPlaceType'.
Similarly, both functions for getting/setting whether it supports inplace (boolean) and those for getting/setting the type of inplace (enum) use the same name, "executeInPlace".
To clarify this, I've changed the names as follows..
Self evaluation: