quantnn/generic/__init__.py
def reshape(module, array, shape):
    """
    Reshape array into given shape.

    Arguments:
        module: The backend array corresponding to the given array.
        array: The array to reshape
        shape: The shape into which to rehshape the array.

    Returns:
        The array reshaped into the requested shape.
    """
    _import_modules()
    if module in [np, ma, torch, jnp]:
        return array.reshape(shape)
    if module == tf:
        return tf.reshape(array, shape)
    raise UnknownModuleException(f"Module {module.__name__} not supported.")

    Reshape array into given shape.

    Arguments:
        module: The backend array corresponding to the given array.
        array: The array to reshape
        shape: The shape into which to rehshape the array.

    Returns:
        The array reshaped into the requested shape.
    
Reshape array into given shape.
Reshape array into given shape .
def reshape(module, array, shape):
    _import_modules()
    if module in [np, ma, torch, jnp]:
        return array.reshape(shape)
    if module == tf:
        return tf.reshape(array, shape)
    raise UnknownModuleException(f"Module {module.__name__} not supported.")
def reshape ( module , array , shape ) : _import_modules ( ) if module in [ np , ma , torch , jnp ] : return array . reshape ( shape ) if module == tf : return tf . reshape ( array , shape ) raise UnknownModuleException ( f"Module {module.__name__} not supported." )
Reshape array into given shape.
Reshape array into given shape .
"""
    Reshape array into given shape.

    Arguments:
        module: The backend array corresponding to the given array.
        array: The array to reshape
        shape: The shape into which to rehshape the array.

    Returns:
        The array reshaped into the requested shape.
    """
The array reshaped into the requested shape.
The array reshaped into the requested shape .
module
The backend array corresponding to the given array.
The backend array corresponding to the given array .
array
The array to reshape
The array to reshape
shape
The shape into which to rehshape the array.
The shape into which to rehshape the array .