Reverse¶
Reorder the elements along an axis, and the corresponding data slices, so they are in reverse order.
This will act on every stream in the packet containing the specified axis. As with many nodes in the TensorMath package, this node can also take a numerical array or list of strings, instead of a Packet, in which case the output will be an array or list.
Version 1.1.0
Ports/Properties¶
data¶
Data to process.
axis¶
Axis along which the data will be reversed. You can also enter the axis label here as in feature.mylabel. If the input to this node is an array instead of a Packet, specify the array axis index (i.e., 0, 1).
stream¶
Stream name on which to operate; if unspecified, all streams containing the specified axis will be modified. Wildcards are supported, so mystream* will match the first stream whose name starts with mystream.
stream_name¶
axis_label¶
Optionally the custom_label of the axis to reverse along. Note that you can generally enter the label as part of the axis to operate on, using either the syntax myaxis.mylabel or myaxis(label='mylabel').
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.