Update LatentSample.cpp