Closed karttikeya closed 3 years ago
Vision Transformer uses torch.nn.init.trunc_normal_ (here) which is not yet available in torch.nn.init (in pytorch 1.4). Is this expected behavior?
torch.nn.init.trunc_normal_
torch.nn.init
Ah yeah, you're right @karttikeya - this only would work with pytorch 1.7. To unblock yourself, you can upgrade to that. In the meantime, I will send a PR to fix this for older pytorch versions
Fixed in https://github.com/facebookresearch/ClassyVision/pull/690
🐛 Bug
Vision Transformer uses
torch.nn.init.trunc_normal_
(here) which is not yet available intorch.nn.init
(in pytorch 1.4). Is this expected behavior?