cat¶ class tensordict.cat(input, dim=0, *, out=None)¶ 沿著給定的維度將 tensordict 連接到單個 tensordict 中。 此呼叫等效於呼叫 torch.cat(),但與 torch.compile 相容。