[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-10 UTC."],[],[],null,["# TensorFlowLiteSwift Framework Reference\n\nShape\n=====\n\n public struct Shape : Equatable, Hashable\n\n extension ../../Structs/Tensor.html.Shape: ExpressibleByArrayLiteral\n\nThe shape of a [Tensor](../../Structs/Tensor.html).\n- `\n ``\n ``\n `\n\n ### [rank](#/s:19TensorFlowLiteSwift0A0V5ShapeV4rankSivp)\n\n `\n ` \n The number of dimensions of the [Tensor](../../Structs/Tensor.html). \n\n #### Declaration\n\n Swift \n\n public let rank: Int\n\n- `\n ``\n ``\n `\n\n ### [dimensions](#/s:19TensorFlowLiteSwift0A0V5ShapeV10dimensionsSaySiGvp)\n\n `\n ` \n An array of dimensions for the [Tensor](../../Structs/Tensor.html). \n\n #### Declaration\n\n Swift \n\n public let dimensions: [Int]\n\n- `\n ``\n ``\n `\n\n ### [init(_:)](#/s:19TensorFlowLiteSwift0A0V5ShapeVyAESaySiGcfc)\n\n `\n ` \n Creates a new instance with the given array of dimensions. \n\n #### Declaration\n\n Swift \n\n public init(_ dimensions: [Int])\n\n #### Parameters\n\n |--------------------|---------------------------------------------------------|\n | ` `*dimensions*` ` | Dimensions for the [Tensor](../../Structs/Tensor.html). |\n\n- `\n ``\n ``\n `\n\n ### [init(_:)](#/s:19TensorFlowLiteSwift0A0V5ShapeVyAESid_tcfc)\n\n `\n ` \n Creates a new instance with the given elements representing the dimensions. \n\n #### Declaration\n\n Swift \n\n public init(_ elements: Int...)\n\n #### Parameters\n\n |------------------|---------------------------------------------------------|\n | ` `*elements*` ` | Dimensions for the [Tensor](../../Structs/Tensor.html). |\n\n- `\n ``\n ``\n `\n\n ### [init(arrayLiteral:)](#/s:19TensorFlowLiteSwift0A0V5ShapeV12arrayLiteralAESid_tcfc)\n\n `\n ` \n Creates a new instance with the given array literal representing the dimensions. \n\n #### Declaration\n\n Swift \n\n public init(arrayLiteral: Int...)\n\n #### Parameters\n\n |----------------------|---------------------------------------------------------|\n | ` `*arrayLiteral*` ` | Dimensions for the [Tensor](../../Structs/Tensor.html). |"]]