def _deconv_output_length(self, input_length, filter_size, stride_size, dilation_size, padding):
    'Calculate the width and height of output.'
    length = 0
    filter_size = (filter_size + ((filter_size - 1) * (dilation_size - 1)))
    if self.is_valid:
        if ((filter_size - stride_size) > 0):
            length = (((input_length * stride_size) + filter_size) - stride_size)
        else:
            length = (input_length * stride_size)
    elif self.is_same:
        length = (input_length * stride_size)
    elif self.is_pad:
        length = ((((input_length * stride_size) - padding) + filter_size) - stride_size)
    return length
Calculate the width and height of output.
def _deconv_output_length(self, input_length, filter_size, stride_size, dilation_size, padding):
    
    length = 0
    filter_size = (filter_size + ((filter_size - 1) * (dilation_size - 1)))
    if self.is_valid:
        if ((filter_size - stride_size) > 0):
            length = (((input_length * stride_size) + filter_size) - stride_size)
        else:
            length = (input_length * stride_size)
    elif self.is_same:
        length = (input_length * stride_size)
    elif self.is_pad:
        length = ((((input_length * stride_size) - padding) + filter_size) - stride_size)
    return length