Closed Cryaaa closed 2 years ago
Hey, I wanted to try out the library on my datasets as well and just rant into the exact same error.
In file tabpfn\layer.py
, from torch.nn.modules.transformer import *
is the tricky part. It's not importing the modules, and it's not a good practice for coding anyway. So the following would solve the issue:
import torch
from torch.nn.modules.transformer import _get_activation_fn, Module, Tensor, Optional, MultiheadAttention, Linear, Dropout, LayerNorm
from torch.utils.checkpoint import checkpoint
Thank you to both of you! I used the fix that you suggested @fatihozturkh2o
In case you still care this fix is now on pip as well :)
Nice one! I cloned the project already to test it but good to hear that it’s made it to a release so soon 😊
Hello, I wanted to test your library on some of my data but I'm having trouble when I try to import the classifier with:
The full Traceback is:
If it helps: the list of installed pip packages is:
Maybe I'm missing something simple but I can't find out why its throwing this error...