Error while importing models

While running the below command I am getting the error

from models import InferSent
No module named ‘models’

How to resolve it

This seems to be a Python issue rather than PyTorch-related.
I assume 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