We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tf.shape(x)[axis]
nn.length(axis)
axis
nn.Dim
nn.dim_value(axis)
Also see the small RETURNN migration guide and RETURNN common conventions.