Class MPSGraphOptimization


  • public final class MPSGraphOptimization
    extends java.lang.Object
    Optimization levels to tradeoff compilation time for even more runtime performance by running more passes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Level0
      Graph performs core optimizations only.
      static long Level1
      Graph performs additional Optimizations, like using the placement pass to dispatch across different HW blocks like the NeuralEngine and CPU along with the GPU.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Level0

        public static final long Level0
        Graph performs core optimizations only. API-Since: 15.4
        See Also:
        Constant Field Values
      • Level1

        public static final long Level1
        Graph performs additional Optimizations, like using the placement pass to dispatch across different HW blocks like the NeuralEngine and CPU along with the GPU. API-Since: 15.4
        See Also:
        Constant Field Values