Categories

The following categories are available globally.

  • An array of numbers, also typed as a TIOVector, is able to provide bytes to or capture bytes from a tensor.

    See more

    Declaration

    Objective-C

    @interface NSArray (TIOData)
  • An NSData object may be an input to a tensor or an output from a tensor.

    The underlying bytes will be supplied directly to or accepted directly from a tensor. NSData already implements both:

    @code

    • (instancetype)initWithBytes:(const void *)bytes length:(NSUInteger)length
    • (void)getBytes:(void *)buffer length:(NSUInteger)length`. @endcode

    So we just pass initialization to those methods without making any assumptions about the type of the data (float_t or uint8_t).

    See more

    Declaration

    Objective-C

    @interface NSData (TIOData)
  • NSDictionary conforms to TIOData so that it may be passed as input to a model and returned as output from a model.

    @warning A dictionary can neither provide bytes directly to nor capture bytes directly from a tensor. Instead the named entries of the dictionary must be able to do so.

    See more

    Declaration

    Objective-C

    @interface NSDictionary (TIOData)
  • An NSNumber can provide a single value to a tensor or accepts a single value from a tensor.

    See more

    Declaration

    Objective-C

    @interface NSNumber (TIOData)
  • TensorIO utility functions for NSDictionary.

    A number of models return a softmax function over a set of labeled output, for example, classification outputs. These utility functions are meant to be worked with that kind of data, where the entries in the dictionary are label-probability key-value pairs.

    See more

    Declaration

    Objective-C

    @interface NSDictionary (Extensions)
  • TensorIO extensions to UIImage, specifically for converting images to and from instances of CVPixelBufferRef.

    See more

    Declaration

    Objective-C

    @interface UIImage (CVPixelBuffer)