Error while importing models

While running the below command I am getting the error

from models import InferSent
ERROR:-
No module named ‘models’

How to resolve it

This seems to be a Python issue rather than PyTorch-related.
I assume models.py is not in your current working directory, which would throw this error.
Have a look at the Import system in Python for a detailed description.

worked like charm thanks @ptrblck