Skip to content

Tensor setup via method chaining #182

Description

@dboyliao

Sth like this:

Tensor* t = new Tensor();
(t->setShape({3, 3})->setAddress(<address>)->....) // setup whatever you need.

It'll be a lot easier to design a template for the code generator if we have many mechanism to control how tensor behave at the runtime.
Mostly mem allocation for now, but I can see there'll be more to come in the future.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaAll ideas are welcomed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions