def compute_output_shape(self, input_shape):
    assert (input_shape and (len(input_shape) >= 2))
    assert input_shape[(- 1)]
    output_shape = list(input_shape)
    output_shape[(- 1)] = self.output_dim
    return tuple(output_shape)
def compute_output_shape(self, input_shape):
    assert (input_shape and (len(input_shape) >= 2))
    assert input_shape[(- 1)]
    output_shape = list(input_shape)
    output_shape[(- 1)] = self.output_dim
    return tuple(output_shape)