Contents

init(useSingleThread:generateDebugInfo:optimizationPreference:)

Creates an allocated compilation-options object with the specified values.

Declaration

init(useSingleThread: Bool = false, generateDebugInfo: Bool = false, optimizationPreference: BNNSGraph.CompileOptions.OptimizationPreference = .performance)

Parameters

  • useSingleThread:

    A Boolean value that specifies whether the graph executes on one thread.

  • generateDebugInfo:

    A Boolean value that specifies whether the generated graph includes debug info.

  • optimizationPreference:

    A constant that specifies the graph compilation-optimization preferences.

See Also

Creating a compilation options structure