init(arrayLiteral:)
Returns a new shape with the specified size.
Declaration
init(arrayLiteral: BNNS.Shape.ArrayLiteralElement...)Parameters
- arrayLiteral:
An array that specifies the number of values in each dimension.
Discussion
This initializer returns a shape with the default layout for the rank that’s equal to the count of arrayLiteral. The default layouts for each dimensionality are: