负采样 ID 报 “Expected indices to have scalar type Long”MovieLens 里那几个 id,得显式转成 long

这是一个 PyTorch 类型与索引报错的场景,我去核实 Embedding、gather 对索引 dtype 的官方要求,以及 MovieLens 数据集的真实字段