更新时间:2023-12-02 12:15:04
有人对我如何调换这些砝码有想法吗?
Does anyone have an idea on how I can transpose those weights?
换位很简单:
new_weights = tf.transpose(weights, perm=[0, 1, 3, 2])
将交换最后两个轴.
但是,正如@Seven提到的那样,这不足以解决错误,因为权重总数发生了变化.
However, as @Seven mentioned, that wouldn't be enough to address the error, as the total number of weights changed.