(xshape)
Helper function to interpret the tensor layout of preceding layer to handle non-recurrent,
    recurrent, and local layers.
Helper function to interpret the tensor layout of preceding layer to handle non-recurrent,
    recurrent, and local layers.
Helper function to interpret the tensor layout of preceding layer to handle non - recurrent recurrent and local layers .
def interpret_in_shape(xshape):
    """
    Helper function to interpret the tensor layout of preceding layer to handle non-recurrent,
    recurrent, and local layers.
    """
    if isinstance(xshape, (int, np.integer)):
        return (xshape, 1)
    else:
        if len(xshape) == 2:
            return xshape
        else:
            return (np.prod(xshape), 1)
def interpret_in_shape ( xshape ) : if isinstance ( xshape , ( int , np . integer ) ) : return ( xshape , 1 ) else : if len ( xshape ) == 2 : return xshape else : return ( np . prod ( xshape ) , 1 )