Skip to content

Implement __copy__ and __deepcopy__ model methods #6985

Closed
@ricardoV94

Description

@ricardoV94

Description

A couple of users on discourse got some nasty bugs when trying to do copy.deepcopy(model). Whatever the default is doing, it ain't great.

We have a clone_model in model/fgraph that we can use for both copy and deepcopy!

It should work in all cases except for the known issue with GP variables #6883

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions