提交 8a1daf85 authored 作者: sentient07's avatar sentient07

Check condition for 0

上级 51369fb4
...@@ -66,7 +66,7 @@ def get_conv_output_shape(image_shape, kernel_shape, ...@@ -66,7 +66,7 @@ def get_conv_output_shape(image_shape, kernel_shape,
""" """
bsize, imshp = image_shape[0], image_shape[2:] bsize, imshp = image_shape[0], image_shape[2:]
nkern, kshp = kernel_shape[0], kernel_shape[2:] nkern, kshp = kernel_shape[0], kernel_shape[2:]
if not filter_dilation: if filter_dilation is None:
filter_dilation = numpy.ones(len(subsample), dtype='int') filter_dilation = numpy.ones(len(subsample), dtype='int')
if isinstance(border_mode, tuple): if isinstance(border_mode, tuple):
out_shp = tuple(get_conv_shape_1axis( out_shp = tuple(get_conv_shape_1axis(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论