to_nf4¶ torchao.dtypes.to_nf4(tensor, block_size: int = 64, scaler_block_size: int =256)[源码]¶ 将给定的张量转换为归一化浮点 4 位张量。