This commit is contained in:
Fariz Rahman
2017-04-07 02:48:37 +05:30
committed by GitHub
parent d6d72aaad3
commit 671ca018a9
+2 -2
View File
@@ -190,10 +190,10 @@ def depth_to_space(input, scale, data_format=None):
input = _preprocess_conv2d_input(input, data_format)
b, k, row, col = input.shape
out_channels = k // (scale**2)
out_channels = k // (scale ** 2)
x = T.reshape(input, (b, scale, scale, out_channels, row, col))
x = T.transpose(x, (0, 3, 4, 1, 5, 2))
out = T.reshape(x, (b, out_channels, row*scale, col*scale))
out = T.reshape(x, (b, out_channels, row * scale, col * scale))
out = _postprocess_conv2d_output(out, input, None, None, None, data_format)
return out