PyTorch cat () 函数实现维度拼接需要保证(除需要合并的维度外)其他维度均相等。参数dim指定需要合并的维度的索引号。 如下例子为合并第三维。 import torch a ...
確定! 回上一頁