Skip to content

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Mar 1, 2021

Fixes #413.

This commit adds support for the command line tool to accept index
expressions containing windowing, striding and index sets. An example
of each of these features is added to the help message of taco:

taco "a(i) = b(i(1, 5))" -d=a:4          # Slice b[1:5]
taco "a(i) = b(i(1, 5, 2))" -d=a:2       # Slice b[1:5:2]
taco "a(i) = b(i({1, 3, 5, 7}))" -d=a:4  # Slice b[[1, 3, 5, 7]]

Fixes tensor-compiler#413.

This commit adds support for the command line tool to accept index
expressions containing windowing, striding and index sets. An example
of each of these features is added to the help message of taco:
```
taco "a(i) = b(i(1, 5))" -d=a:4          # Slice b[1:4]
taco "a(i) = b(i(1, 5, 2))" -d=a:2       # Slice b[1:4:2]
taco "a(i) = b(i({1, 3, 5, 7}))" -d=a:4  # Slice b[[1, 3, 5, 7]]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli: add support for windowing/striding/index sets to cli parser
1 participant