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

[Wait for #2848, #2856] [ Context ] Add Context Data Class #2860

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jijoongmoon
Copy link
Collaborator

This PR enables the Context Data Class to hold the variables which
generated by Context. So that, it can be used in layer
implemenatation. RunLayerContext include this Context Data and it can
be accessible by calling getContextData with propper casting.

Resolves:

Self evaluation:

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

Signed-off-by: jijoong.moon jijoong.moon@samsung.com

This PR add ComputeEngine Enum Property.
Enum elements are "cpu", "gpu", "qnn" for now.
The property format is "engine=qnn".

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

Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
In order to extend the Context more easily, this PR adds Engine Class
to manage the Contexts. It adds Context Class as well which is base
class of all the Context.
 . add Engine Class
 . add Context Class
 . set default Context is app contexts
 . Pluggable support in Engine
 . some more code optimization & test codes requires.

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

Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
It is more flexible to moe Weight Read Fuction to Layer Object itself,
rather than having layer_node. Sometimes, it is necessary to change
the read weight depending on Layer Type, such as Batch normalization
layer.

This PR move general read implementation to Layer_devel and layer is
able to override it as it needs.

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

Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
This PR enables the Context Data Class to hold the variables which
generated by Context. So that, it can be used in layer
implemenatation. RunLayerContext include this Context Data and it can
be accessible by calling getContextData with propper casting.

Resolves:

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

Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
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

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.

2 participants