nn.Bottle doesn't exist


I am trying to use nn.Bottle, but I got
AttributeError: module 'torch.nn' has no attribute 'Bottle'
I am wondering how can I get around.


I tried nn.Can but it doesn’t exist either

1 Like

Neither does nn.Cup. This should be a severe bug and please post an issue in PyTorch repo.

1 Like

I think you might be looking for some Caffe? :coffee: :slight_smile:
There is no need for nn.Bottle, because you can view your weights and apply the operation yourself.
That being said, nn.Linear support some variant of nn.Bottle, as it uses matmul internally, which performs automatic broadcasting.

Thanks for the reply!