Shape
public struct Shape : Equatable, Hashableextension Tensor.Shape: ExpressibleByArrayLiteralThe shape of a Tensor.
- 
                  
                  The number of dimensions of the Tensor.DeclarationSwift public let rank: Int
- 
                  
                  An array of dimensions for the Tensor.DeclarationSwift public let dimensions: [Int]
- 
                  
                  Creates a new instance with the given array of dimensions. DeclarationSwift public init(_ dimensions: [Int])ParametersdimensionsDimensions for the Tensor.
- 
                  
                  Creates a new instance with the given elements representing the dimensions. DeclarationSwift public init(_ elements: Int...)ParameterselementsDimensions for the Tensor.
- 
                  
                  Creates a new instance with the given array literal representing the dimensions. DeclarationSwift public init(arrayLiteral: Int...)ParametersarrayLiteralDimensions for the Tensor.