pub unsafe extern "C" fn ANeuralNetworksExecution_getOutputOperandRank(
execution: *mut ANeuralNetworksExecution,
index: i32,
rank: *mut u32,
) -> c_intExpand description
Get the dimensional information of the specified output operand of the model of the {@link ANeuralNetworksExecution}.
The execution must have completed. On asynchronous execution initiated by {@link ANeuralNetworksExecution_startCompute} or {@link ANeuralNetworksExecution_startComputeWithDependencies}, {@link ANeuralNetworksEvent_wait} must be called prior to this function.
@param execution The execution to be queried. @param index The index of the output argument we are querying. It is an index into the lists passed to {@link ANeuralNetworksModel_identifyInputsAndOutputs}. It is not the index associated with {@link ANeuralNetworksModel_addOperand}. @param rank The rank of the output operand.
@return ANEURALNETWORKS_NO_ERROR if successful, ANEURALNETWORKS_OUTPUT_INSUFFICIENT_SIZE if the target output is provided an insufficient buffer at execution time, ANEURALNETWORKS_BAD_DATA if the index is invalid.
Available since API level 29.