def get_out_shape(ishape, kshape, border_mode, subsample): """ This function computes the output shape for a convolution with the specified parameters. `ishape` and `kshape` can be symbolic or scalar. """ return get_conv_output_shape(ishape, kshape, border_mode, subsample)
def infer_shape(self, node, input_shape): imshp = input_shape[0] kshp = input_shape[1] res = get_conv_output_shape( imshp, kshp, self.border_mode, self.subsample) return [res]
def get_out_shape(ishape, kshape, border_mode, subsample): """ This function computes the output shape for a convolution with the specified parameters. `ishape` and `kshape` can be symbolic or scalar. """ return get_conv_output_shape( ishape, kshape, border_mode, subsample)
def infer_shape(self, node, input_shape): imshp = input_shape[0] kshp = input_shape[1] res = get_conv_output_shape(imshp, kshp, self.border_mode, self.subsample) return [res]