def softmax(seq, name=''): ''' Computes the softmax of the input 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_softmax seq = sanitize_input(seq, get_data_type(seq)) return sequence_softmax(seq, name)
def softmax(seq, name = ''): ''' Computes the softmax of the input 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_softmax seq = sanitize_input(seq, get_data_type(seq)) return sequence_softmax(seq, name)