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
SDFG class documentation does not match implementation #1563
Comments
The documentation is wrong. It should be constants. Symbols are added to SDFGs as follows:
import dace
N = dace.symbol('N')
sdfg = dace.SDFG('implicit_symbol_test')
sdfg.add_array('A', shape=(N,), dtype=dace.int32)
print(sdfg.symbols) I will make a PR. |
github-merge-queue bot
pushed a commit
that referenced
this issue
May 8, 2024
This PR corrects the `SDFG.__init__` docstring to refer to the correct parameter `constants` (compile-time constants) instead of `symbols` (scalars that are immutable in the SDFG scope). See also #1563
Fixed by #1571 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The SDFG class init method looks like this:
Note that the second argument is named
constants
in the implementation butsymbols
in the documentation.I don't want to just change it because I don't fully understand what is meant here and for me the semantics are different: Constants do not change within their scope of definition, Symbols (as an SDFG concept) can be changed i.e., on interstate edges AFAIU.
The text was updated successfully, but these errors were encountered: