Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !275

Support for Tensor Comprehensions with arbitrary numbers of return values

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Sven-Bodo Scholz requested to merge sbs/sac2c:multiGenerator-TC-support into develop Feb 05, 2024
  • Overview 30
  • Commits 15
  • Changes 16

The key idea is to derive the number of return values from the number of variables used on the LHS of an assignment. This should enable TCs such as

{[i] -> print (i) | [i] < [10]};

as well as

a, b = {[i] -> foo (i) | [i] < [10]};

where foo returns two values. While it might seem to be artificial to require an explicit assignment, this seems to be an acceptable choice since SaC currently does not allow functions that return more than one array to occur anywhere else either.

Edited Feb 07, 2024 by Sven-Bodo Scholz
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: multiGenerator-TC-support