TensorFlowLiteSwift Framework Reference

MetalDelegate

  public 
 final 
 class 
 MetalDelegate 
 : 
  Delegate 
 
 

A delegate that uses the Metal framework for performing TensorFlow Lite graph operations with GPU acceleration.

Important

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

    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 .

    Declaration

    Swift

      public 
     init 
     ( 
     options 
     : 
      Options 
     
     = 
      Options 
     
     ()) 
     
    

    Parameters

    options

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

  • Options for configuring the MetalDelegate .

    Declaration

    Swift

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