The view operation is wrong:
x=x.view(x.size(0),224)

since you are reshaping the output to have 224 features, while the linear layer is defined as:
self.model=nn.Sequential(
    nn.Linear(1000,224),
    ...

You would have to pass an input with 1000 features or change the in_features of the linear layer.
PS: you can post code snippets by wrapping them into three backticks ```, which would make debugging easier.