TIOTFLiteModel

@interface TIOTFLiteModel : NSObject <TIOModel>

An Objective-C wrapper around TensorFlow lite models that provides a unified interface to the input and output layers of the underlying model.

See TIOModel for more information about TensorIO models and for a description of the conforming properties and methods here.

  • Undocumented

    Declaration

    Objective-C

    + (nullable instancetype)modelWithBundleAtPath:(nonnull NSString *)path;

    Swift

    class func withBundleAtPath(_ path: String) -> Self?
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) TIOModelBundle *bundle

    Swift

    var bundle: TIOModelBundle { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) TIOModelOptions *options

    Swift

    var options: TIOModelOptions { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) NSString* identifier

    Swift

    var identifier: String { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) NSString* name

    Swift

    var name: String { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) NSString* details

    Swift

    var details: String { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) NSString* author

    Swift

    var author: String { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) NSString* license

    Swift

    var license: String { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) BOOL placeholder

    Swift

    var placeholder: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) BOOL quantized

    Swift

    var quantized: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) NSString *type

    Swift

    var type: String { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) BOOL loaded

    Swift

    var loaded: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) NSArray<TIOLayerInterface*> *inputs

    Swift

    var inputs: [TIOLayerInterface] { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly) NSArray<TIOLayerInterface*> *outputs

    Swift

    var outputs: [TIOLayerInterface] { get }
  • Undocumented

    Declaration

    Objective-C

    - (nullable instancetype)initWithBundle:(nonnull TIOModelBundle *)bundle;

    Swift

    init?(bundle: TIOModelBundle)
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nullable instancetype)init NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)load:(NSError *_Nullable *_Nullable)error;

    Swift

    func load() throws
  • Undocumented

    Declaration

    Objective-C

    - (void)unload;

    Swift

    func unload()
  • Undocumented

    Declaration

    Objective-C

    - (nonnull id<TIOData>)runOn:(nonnull id<TIOData>)input;

    Swift

    func run(on input: TIOData) -> TIOData
  • Undocumented

    Declaration

    Objective-C

    - (nonnull id<TIOLayerDescription>)descriptionOfInputAtIndex:(NSUInteger)index;

    Swift

    func descriptionOfInput(at index: UInt) -> TIOLayerDescription
  • Undocumented

    Declaration

    Objective-C

    - (nonnull id<TIOLayerDescription>)descriptionOfInputWithName:
        (nonnull NSString *)name;

    Swift

    func descriptionOfInput(withName name: String) -> TIOLayerDescription
  • Undocumented

    Declaration

    Objective-C

    - (nonnull id<TIOLayerDescription>)descriptionOfOutputAtIndex:(NSUInteger)index;

    Swift

    func descriptionOfOutput(at index: UInt) -> TIOLayerDescription
  • Undocumented

    Declaration

    Objective-C

    - (nonnull id<TIOLayerDescription>)descriptionOfOutputWithName:
        (nonnull NSString *)name;

    Swift

    func descriptionOfOutput(withName name: String) -> TIOLayerDescription