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

@get_number(tr, spec) for spec which has already been instantiated #52

Open
georgematheos opened this issue Jan 13, 2022 · 0 comments
Open

Comments

@georgematheos
Copy link
Owner

This causes an error if tr is a TraceToken.
E.g.

# within kernel function...
set = @objects(tr, Blip)
# ... later
@get_number(tr, Blip(Aircraft(1), Timestep(2)))
# This causes an error because the number statement was looked up when constructing `set`, and the trace kernel DSL tries to track a gradient for the lookup twice

Really we don't even want to track gradients for number statement lookups! That would fix the error.

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

No branches or pull requests

1 participant