|
1
0
最后我以不同的方式问了同一个问题,我得到了一个完美的答案: What is the right way to manipulate the shape of a tensor when there are unknown elements in it?
要点是,不要直接处理尺寸。通过引用而不是价值来使用它们。所以,不要使用
|
|
|
DPM · 将自定义掩码传递给LSTM数据以进行培训和验证 4 年前 |
|
|
user836026 · 在pytorch中复制权重时语法无效 4 年前 |
|
|
mad · 如何从一个定制的神经网络模型中获得逻辑和概率 4 年前 |