VGG implementation error

import vgg
class VGG(nn.Module):
    VGG model 
    def __init__(self, features):
        super(VGG, self).__init__()
        self.features = features
        self.classifier = nn.Sequential(
            nn.Linear(512, 512),
            nn.Linear(512, 512),
            nn.Linear(512, 10),
         # Initialize weights

    def forward(self, x):
        x = self.features(x)
        x = x.view(x.size(0), -1)
        return x

ModuleNotFoundError: No module named ‘vgg’

help me plzz

It doesn’t look like you use the vgg import here. Why is it imported?

@eqy for the code to work

@eqy def forward(self, x):
→ 103 x = self.features(x)
104 x = x.view(x.size(0), -1)
105 return x

TypeError: ‘int’ object is not callable

help me plz

You might be passing an int intead of a tensor here.