Skip to content

Expose memory needs_init on LinearMemory/RuntimeLinearMemory #12517

@d-sonuga

Description

@d-sonuga

Feature

Need to have control over whether or not a linear memory is reinitialized when a module is instantiated.

Benefit

The use-case for this is to have persistent memory that does not get wiped out across runs.

Implementation

Expose a needs_init function on the LinearMemory trait. It can default to true, which will resort to the
current behavior of always reinitializing the memory when a module is instantiated.

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