Stanford UFLDL tutorial cuda implementation (only linear decoder)