public interface Axis
Base axis class for 0.4 and 0.5 axes.
-
Method Summary
Modifier and TypeMethodDescriptiongetID()Get the axis ID.getSize()Get the size of this axis.getType()Get the type of this axis, seeAxisType.voidvalidate(List<? extends BaseTensor> tensors) Ensure the parameters of the axis are valid, possibly resolving references to other tensors and/or axes.
-
Method Details
-
getType
AxisType getType()Get the type of this axis, seeAxisType.- Returns:
- The axis type.
-
getSize
Size getSize()Get the size of this axis.- Returns:
- The size, unless it's a 0.4 axis (these have no size).
-
getID
String getID()Get the axis ID.- Returns:
- The axis ID.
-
validate
Ensure the parameters of the axis are valid, possibly resolving references to other tensors and/or axes.- Parameters:
tensors- Other tensors in the model, in case they are referenced in this axis.
-