TensorFlowLiteSwift Framework Reference

Options

  public 
 struct 
 Options 
 : 
 Equatable 
 , 
 Hashable 
 

Undocumented

  • A type indicating which devices the Core ML delegate should be enabled for. The default value is .neuralEngine indicating that the delegate is enabled for Neural Engine devices only.

    Declaration

    Swift

      public 
     var 
     enabledDevices 
     : 
      EnabledDevices 
     
     
    
  • Target Core ML version for the model conversion. When it’s not set, Core ML version will be set to highest available version for the platform.

    Declaration

    Swift

      public 
     var 
     coreMLVersion 
     : 
     Int 
     
    
  • The maximum number of Core ML delegate partitions created. Each graph corresponds to one delegated node subset in the TFLite model. The default value is 0 indicating that all possible partitions are delegated.

    Declaration

    Swift

      public 
     var 
     maxDelegatedPartitions 
     : 
     Int 
     
    
  • The minimum number of nodes per partition to be delegated by the Core ML delegate. The default value is 2 .

    Declaration

    Swift

      public 
     var 
     minNodesPerPartition 
     : 
     Int 
     
    
  • Creates a new instance with the default values.

    Declaration

    Swift

      public 
     init 
     () 
     
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: