MPPEmbedding
@interface MPPEmbedding : NSObjectRepresents 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.
- 
                  
                  @brief The embedding represented as an NSArrayofFloatvalues. Empty if the embedder was configured to perform scalar quantization.DeclarationObjective-C @property (nonatomic, readonly, nullable) NSArray<NSNumber *> *floatEmbedding;
- 
                  
                  @brief The embedding represented as an NSArrayofUInt8values. Empty if the embedder was not configured to perform scalar quantization.DeclarationObjective-C @property (nonatomic, readonly, nullable) NSArray<NSNumber *> *quantizedEmbedding;
- 
                  
                  The index of the embedder head these entries refer to. This is useful for multi-head models. DeclarationObjective-C @property (nonatomic, readonly) NSInteger headIndex;
- 
                  
                  The optional name of the embedder head, which is the corresponding tensor metadata name. DeclarationObjective-C @property (nonatomic, readonly, nullable) NSString *headName;
- 
                  
                  Initializes a new MPPEmbeddingwith the given float embedding, quantized embedding, head index and head name.DeclarationObjective-C - (nonnull instancetype) initWithFloatEmbedding:(nullable NSArray<NSNumber *> *)floatEmbedding quantizedEmbedding:(nullable NSArray<NSNumber *> *)quantizedEmbedding headIndex:(NSInteger)headIndex headName:(nullable NSString *)headName;ParametersfloatEmbeddingThe optional Floating-point embedding. quantizedEmbeddingThe optional Quantized embedding. headIndexThe index of the embedder head. headNameThe optional name of the embedder head. Return ValueAn instance of MPPEmbeddinginitialized with the given float embedding, quantized embedding, head index and head name.
- 
                  
                  Undocumented DeclarationObjective-C - (instancetype)init NS_UNAVAILABLE;
- 
                  
                  Undocumented DeclarationObjective-C + (instancetype)new NS_UNAVAILABLE;