neuraloperator
neuraloperator copied to clipboard
Deepcopy base model
The models in neuralop.models subclass neuralop.models.BaseModel, which adds lots of useful functionality but does not implement the __deepcopy__ method necessary to copy a torch module's architecture and state. This PR adds a method to do that.
Wouldn't the default deepcopy work out of the box?
Wouldn't the default deepcopy work out of the box? No, it throws an error - there's no way to access the internal module state from base_model by default.
Was this resolved @dhpitt ?