BNNSGraphCompileOptionsSetOptimizationPreference(_:_:)
Sets the option for the compiled graph to optimize for either size or performance.
Declaration
func BNNSGraphCompileOptionsSetOptimizationPreference(_ options: bnns_graph_compile_options_t, _ preference: BNNSGraphOptimizationPreference)Parameters
- options:
The compilation options object.
- preference:
The optimization preference.
Discussion
The default option is to optimize for performance.
See Also
Specifying and querying compilation options
bnns_graph_compile_options_tBNNSGraphCompileOptionsMakeDefault()BNNSGraphCompileOptionsDestroy(_:)BNNSGraphCompileOptionsSetOutputPath(_:_:)BNNSGraphCompileOptionsGetOutputPath(_:)BNNSGraphCompileOptionsSetOutputFD(_:_:)BNNSGraphCompileOptionsGetOutputFD(_:)BNNSGraphCompileOptionsSetTargetSingleThread(_:_:)BNNSGraphCompileOptionsGetTargetSingleThread(_:)BNNSGraphCompileOptionsGetOptimizationPreference(_:)BNNSGraphOptimizationPreferenceBNNSGraphCompileOptionsSetGenerateDebugInfo(_:_:)BNNSGraphCompileOptionsGetGenerateDebugInfo(_:)BNNSTargetSystemGeneric