(x, kernel)
Wrapper for dot product operation, in order to be compatible with both
        Theano and Tensorflow
        Args:
            x (): input
            kernel (): weights
        Returns:
Wrapper for dot product operation, in order to be compatible with both
        Theano and Tensorflow
        Args:
            x (): input
            kernel (): weights
        Returns:
Wrapper for dot product operation in order to be compatible with both Theano and Tensorflow Args : x () : input kernel () : weights Returns :
def dot_product(x, kernel):
        """
        Wrapper for dot product operation, in order to be compatible with both
        Theano and Tensorflow
        Args:
            x (): input
            kernel (): weights
        Returns:
        """
        if K.backend() == 'tensorflow':
            return K.squeeze(K.dot(x, K.expand_dims(kernel)), axis=-1)
        else:
            return K.dot(x, kernel)
def dot_product ( x , kernel ) : if K . backend ( ) == 'tensorflow' : return K . squeeze ( K . dot ( x , K . expand_dims ( kernel ) ) , axis = - 1 ) else : return K . dot ( x , kernel )