ANeuralNetworksBurst_create

Function ANeuralNetworksBurst_create 

Source
pub unsafe extern "C" fn ANeuralNetworksBurst_create(
    compilation: *mut ANeuralNetworksCompilation,
    burst: *mut *mut ANeuralNetworksBurst,
) -> c_int
Expand description

Create a {@link ANeuralNetworksBurst} to apply the given compilation. This only creates the burst object. Computation is only performed once {@link ANeuralNetworksExecution_burstCompute} is invoked with a valid {@link ANeuralNetworksExecution} and {@link ANeuralNetworksBurst}.

The provided compilation must outlive the burst object.

Available since API level 29.

@param compilation The {@link ANeuralNetworksCompilation} to be evaluated. @param burst The newly created object or NULL if unsuccessful.

@return ANEURALNETWORKS_NO_ERROR if successful, ANEURALNETWORKS_BAD_DATA if the compilation is invalid.