I think the problem pertains to some missing understanding of the instance norm layer. Since the code works perfectly in train mode, that is if I do evaluation without calling .eval, I don’t think it should be an environment issue.
I am wondering if their is some issue in instance norm for handling input which is predominantly zero during eval state.