Skip to content

← tensor_math package

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.

verbose name
Data
default value
None
port type
DataPort
value type
AnyIndexable (can be None)
data direction
INOUT

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).

verbose name
Axis
default value
feature
port type
ComboPort
value type
str (can be None)

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.

verbose name
Stream
default value
port type
StringPort
value type
str (can be None)

stream_name

verbose name
Stream Name
default value
None
port type
AliasPort
value type
str (can be None)

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').

verbose name
Axis Label
default value
port type
StringPort
value type
str (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)