Skip to content

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

Description

@georgematheos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions