make log_scat take one layer as input