Open Ainaz99 opened 2 years ago
Hi! I don't know what a DPT architecture is, but if it contains any sort of RNN-based module inside, you may also need to use the context manager below:
with torch.backends.cudnn.flags(enabled=False):
# Your meta-learning code here...
Have a look at the Known/Possible Issues
section on the readme page regarding potential issues:
https://github.com/facebookresearch/higher#knownpossible-issues
@Ainaz99
Here is a follow-up to my previous comment. Today, I also got the same error for a simple MLP model that would inherit from multiple classes :
class MyModel(nn.Module, AnotherClass):
def __init__(self):
...
I re-implemented the model as a class with single inheritance and added the methods from the second base (super) class directly to my new model:
class MyModel(nn.Module):
def __init__(self):
...
+ def methods_from_AnotherClass:
...
This solved the issue for me. Let me know if this was also the case for you.
** This problem is probably triggered by the similar inheritances happening inside those different base classes when calling higher.patch.monkeypatch(model,...)
.
Hi,
Thanks for the great library! Does higher support a dpt-based module passed to the higher.innerloop_ctx? I'm getting the following error:
Thank you for your response!