【发布时间】:2016-11-08 14:40:59
【问题描述】:
我使用 Matlab 为 3d 卷积层预训练了权重。权重是一个尺寸为 (512,4,4,4,160) 的 5d 张量。 [out_channels, filter_depth, filter_height, filter_width, in_channels]
现在我想将其输入为初始权重,以便在 tensorflow 的 tf.nn.conv3d 中进行微调。我看到 3d 卷积神经网络允许的权重形状应该是:(4,4,4,160,512).[filter_depth, filter_height, filter_width, in_channels, out_channels]。我可以只使用 tf.Variable().reshape(4,4,4,160,512) 吗?但我觉得如果我只使用重塑,它不是正确的权重。
【问题讨论】:
标签: filter 3d tensorflow reshape