Ejemplo n.º 1
0
def reduce_max(seq, name=''):
    '''
    Computes the max of the input sequence's elements across the sequence axis.

    Args:
        seq: sequence input tensor
        name (`str`, optional): the name of the Function instance in the network

    Returns:
        :class:`~cntk.ops.functions.Function`
    '''
    from cntk.cntk_py import sequence_reduce_max
    seq = sanitize_input(seq, get_data_type(seq))
    return sequence_reduce_max(seq, name)
Ejemplo n.º 2
0
def reduce_max(seq, name=''):
    '''
    Computes the max of the input sequence's elements across the sequence axis.

    Args:
        seq: sequence input tensor
        name (`str`, optional): the name of the Function instance in the network

    Returns:
        :class:`~cntk.ops.functions.Function`
    '''
    from cntk.cntk_py import sequence_reduce_max
    seq = sanitize_input(seq, get_data_type(seq))
    return sequence_reduce_max(seq, name)