TensorFlowLiteSwift Framework Reference

CoreMLDelegate

  public 
 final 
 class 
 CoreMLDelegate 
 : 
  Delegate 
 
 

A delegate that uses the Core ML framework for performing TensorFlow Lite graph operations.

Important

This is an experimental interface that is subject to change.
  • The configuration options for the CoreMLDelegate .

    Declaration

    Swift

      public 
     let 
     options 
     : 
      Options 
     
     
    
  • Undocumented

    Declaration

    Swift

      public 
     private(set) 
     var 
     cDelegate 
     : 
     CDelegate 
     { 
     get 
     } 
     
    
  • Creates a new instance configured with the given options . Returns nil if the underlying Core ML delegate could not be created because Options.enabledDevices was set to neuralEngine but the device does not have the Neural Engine.

    Declaration

    Swift

      public 
     init 
     ?( 
     options 
     : 
      Options 
     
     = 
      Options 
     
     ()) 
     
    

    Parameters

    options

    Configurations for the delegate. The default is a new instance of CoreMLDelegate.Options with the default configuration values.

  • A type indicating which devices the Core ML delegate should be enabled for.

    Declaration

    Swift

      public 
     enum 
     EnabledDevices 
     : 
     Equatable 
     , 
     Hashable 
     
    
  • Undocumented

    Declaration

    Swift

      public 
     struct 
     Options 
     : 
     Equatable 
     , 
     Hashable 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: