def slice(seq, begin_index, end_index, name=''): ''' Slice the input sequence. Examples: TBA Args: seq: sequence input tensor begin_index (`int`): the index along sequence axis where the slicing starts end_index (`int`): the index along sequence axis where the slicing ends name (`str`, optional): the name of the Function instance in the network See also: Indexing in NumPy: http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html Returns: :class:`~cntk.ops.functions.Function` ''' from cntk.cntk_py import sequence_slice seq = sanitize_input(seq, get_data_type(seq)) return sequence_slice(seq, begin_index, end_index, name)