Skip to content

How to tell when a statement is in data/transformed data/parameters/transformed parameters, etc? #873

Description

@SteveBronder

I'm looking at pp_statement trying to make some changes when a Decl is happening, but I only want to make this change whenever I am declaring parameters. Is there information within pp_statement that I can use to tell that I am in the parameters block? If I can then I think I can do a small trick like #865 to make one copy of the parameters on the AD stack. So if someone did someting like

matrix[N, M] transform_x = multiply(data_matrix,, param_vector)

The only memory creation that happens here is for the new matrix transform_x

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions