How can I describe whats my problem, Can not use "view"

Screenshot 2021-06-17 at 21-13-43 Google Colaboratory

TypeError: ‘NoneType’ object is not subscriptable
even before that code, When I used “view” like this =>
x = x.view(-1, self._to_linear)
I got error , It said - AttributeError: ‘NoneType’ object has no attribute ‘view’
but just passed it with Try & Exception,
but now again, what’s my problem?

What is X_test ? Also what is the ouput of the network ? Can you share what ‘X_test’ and ‘net’ is ? It seems one of them is ‘None’