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