Skip to content

Figure out an idiom for TFOperation lifetime #3

Open
@migueldeicaza

Description

@migueldeicaza

The object is only valid as long as the TFGraph object exists, when the TFGraph goes away, the TFOperation goes away as well. So we need a way to either track all TFOperations in a TFGraph [1] or we need TFOperations to keep a pointer to the TFGraph and check if the obejct is still valid on each call, and if not zero out their handle/flag the object as useless.

[1] This is easy, provided that we never need to re-surface a TFGraph back into managed code from a native pointer, we just keep a list of all the objects created.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions