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

[Tensor] Parameterized constructor with TensorBase #2778

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

djeong20
Copy link
Contributor

This PR updates a parameterized constructor accepting a shared pointer of the TensorBase class.
Users now have greater flexibility when creating Tensors, enabling them to adapt new types of user-defined tensors by initializing the itensor object.
Please note that TensorBase remains an abstract class and cannot be instantiated directly.
Remember to utilize a shared_ptr with a derived class when employing this constructor.

Self-evaluation:

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

This PR updates a parameterized constructor accepting a shared pointer of the TensorBase class.
Users now have greater flexibility when creating Tensors, enabling them to adapt new types of user-defined tensors by initializing the itensor object.
Please note that TensorBase remains an abstract class and cannot be instantiated directly.
Remember to utilize a shared_ptr with a derived class when employing this constructor.

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

Signed-off-by: Donghyeon Jeong <[email protected]>
@taos-ci
Copy link
Collaborator

taos-ci commented Oct 31, 2024

📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2778. 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/.

Copy link
Collaborator

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@djeong20, 💯 All CI checkers are successfully verified. Thanks.

Copy link
Member

@DonghakPark DonghakPark left a comment

Choose a reason for hiding this comment

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

LGTM!
It is great that you have also included unit tests for both successful and failed cases.

Copy link
Contributor

@baek2sm baek2sm 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
Copy link
Collaborator

Could you make a test case that checks whether it works in the tensor and memory pools?

@jijoongmoon jijoongmoon merged commit b1a3c75 into nnstreamer:main Nov 4, 2024
39 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.

5 participants