Effective sample size discrepancy between loo and rstan packages

Did you have a look at this thread?