Calculate layer-wise recosntruction error
Calculate layer-wise recosntruction error