cat¶ class tensordict.cat(input: Sequence[T], dim: int = 0, *, out=None)¶ 將tensordicts沿給定維度連線成一個tensordict。 此呼叫等同於呼叫 torch.cat(),但與 torch.compile 相容。