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

*: add support for windowing of tensors #372

Merged

Commits on Feb 12, 2021

  1. *: add support for windowing of tensors

    This commit adds support for windowing of tensors in the existing index
    notation DSL. For example:
    
    ```
    A(i, j) = B(i(1, 4), j) * C(i, j(5, 10))
    ```
    
    causes `B` to be windowed along its first mode, and `C` to be windowed
    along its second mode. In this commit any mix of windowed and
    non-windowed modes are supported, along with windowing the same tensor
    in different ways in the same expression. The windowing expressions
    correspond to the `:` operator to slice dimensions in `numpy`.
    
    Currently, only windowing by integers is supported.
    
    Windowing is achieved by tying windowing information to particular
    `Iterator` objects, as these are created for each `Tensor`-`IndexVar`
    pair. When iterating over an `Iterator` that may be windowed, extra
    steps are taken to either generate an index into the windowed space, or
    to recover an index from a point in the windowed space.
    rohany committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    2d4a7d3 View commit details
    Browse the repository at this point in the history