Experimenting with subtensor_engine #29
kannavkm
started this conversation in
Project Subtensor
Replies: 1 comment 5 replies
-
Considering using tensor_t = tensor_core<engine<...>>;
auto tensor = tensor_t(...);
auto subtensor1 = tensor();
auto subtensor2 = subtensor1(); |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the highest level, the interface is:
Sense of ownership: This engine type should reflect the view nature of the subtensor. But for some parameters below, it may seem as though as it redirects ownership and does not create a view object, the engine dictates the element access and layout types. This way, the interface would dictate that the ownership is passed to the view, which would not be a good design.
Template parameter:
I'll cover the following engines
engine_1
I had some observations:
This is the tensor_engine.
engine_2
If the parent tensor is const, then nested type aliases pointer and
reference are equivalent to const_pointer and const_reference, respectively. for a relatively complete implementation, see this branch here
engine_5
If the parent tensor is const, then nested type aliases pointer and
reference are equivalent to const_pointer and const_reference, respectively. for a relatively complete implementation, see this branch
here.
Beta Was this translation helpful? Give feedback.
All reactions