Represents the embedding for a given embedder head. Typically used in embedding tasks.
One and only one of the two ‘floatEmbedding’ and ‘quantizedEmbedding’ will contain data, based on
whether or not the embedder was configured to perform scala quantization.
[[["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-08 UTC."],[],[],null,["# MediaPipeTasksVision Framework Reference\n\nEmbedding\n=========\n\n class Embedding : NSObject\n\nRepresents the embedding for a given embedder head. Typically used in embedding tasks.\n\nOne and only one of the two 'floatEmbedding' and 'quantizedEmbedding' will contain data, based on\nwhether or not the embedder was configured to perform scala quantization.\n- `\n ``\n ``\n `\n\n ### [floatEmbedding](#/c:objc(cs)MPPEmbedding(py)floatEmbedding)\n\n `\n ` \n @brief The embedding represented as an `NSArray` of `Float` values.\n Empty if the embedder was configured to perform scalar quantization. \n\n #### Declaration\n\n Swift \n\n var floatEmbedding: [NSNumber]? { get }\n\n- `\n ``\n ``\n `\n\n ### [quantizedEmbedding](#/c:objc(cs)MPPEmbedding(py)quantizedEmbedding)\n\n `\n ` \n @brief The embedding represented as an `NSArray` of `UInt8` values.\n Empty if the embedder was not configured to perform scalar quantization. \n\n #### Declaration\n\n Swift \n\n var quantizedEmbedding: [NSNumber]? { get }\n\n- `\n ``\n ``\n `\n\n ### [headIndex](#/c:objc(cs)MPPEmbedding(py)headIndex)\n\n `\n ` \n The index of the embedder head these entries refer to. This is useful for multi-head models. \n\n #### Declaration\n\n Swift \n\n var headIndex: Int { get }\n\n- `\n ``\n ``\n `\n\n ### [headName](#/c:objc(cs)MPPEmbedding(py)headName)\n\n `\n ` \n The optional name of the embedder head, which is the corresponding tensor metadata name. \n\n #### Declaration\n\n Swift \n\n var headName: String? { get }\n\n- `\n ``\n ``\n `\n\n ### [init(floatEmbedding:quantizedEmbedding:head:headName:)](#/c:objc(cs)MPPEmbedding(im)initWithFloatEmbedding:quantizedEmbedding:headIndex:headName:)\n\n `\n ` \n Initializes a new `MPPEmbedding` with the given float embedding, quantized embedding, head index\n and head name. \n\n #### Declaration\n\n Swift \n\n init(floatEmbedding: [NSNumber]?, quantizedEmbedding: [NSNumber]?, head headIndex: Int, headName: String?)\n\n #### Parameters\n\n |----------------------------|-----------------------------------------|\n | ` `*floatEmbedding*` ` | The optional Floating-point embedding. |\n | ` `*quantizedEmbedding*` ` | The optional Quantized embedding. |\n | ` `*headIndex*` ` | The index of the embedder head. |\n | ` `*headName*` ` | The optional name of the embedder head. |\n\n #### Return Value\n\n An instance of `MPPEmbedding` initialized with the given float embedding, quantized\n embedding, head index and head name.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MPPEmbedding(im)init)\n\n `\n ` \n Undocumented\n- `\n ``\n ``\n `\n\n ### [+new](#/c:objc(cs)MPPEmbedding(cm)new)\n\n `\n ` \n Undocumented"]]