def dynamic_axis(name=None): """ This function creates a dynamic axis object that can be connected to an input. For sequence-based inputs, this allows the sequences to be of arbitrary lengths and therefore allows networks to be setup without the need for padding. Example: See Examples/LSTM/seqcla.py for a use of :func:`cntk.ops.dynamic_axis`. Args: name (str): the name of the node in the network Returns: :class:`cntk.graph.ComputationNode` """ from cntk.ops.cntk2 import DynamicAxis op = DynamicAxis(name=name) op.rank = None return op
def dynamic_axis(name=None): """ This function creates a dynamic axis object that can be connected to an input. For sequence-based inputs, this allows the sequences to be of arbitrary lengths and therefore allows networks to be setup without the need for padding. Example: See Examples/LSTM/seqcla.py for a use of :func:`cntk.ops.dynamic_axis`. Args: name: the name of the node in the network Returns: :class:`cntk.graph.ComputationNode` """ from cntk.ops.cntk2 import DynamicAxis op = DynamicAxis(name=name) op.rank = None return op