Function executorch_sys::torch::executor::Method_get_inputs
source · pub unsafe extern "C" fn Method_get_inputs(
this: *mut Method,
input_evalues: *mut EValue,
length: usize,
) -> ErrorExpand description
Copies the method’s inputs into the provided array.
WARNING: The input contains shallow copies of internal tensor inputs. Please do not mutate returned Tensor elements.
@param[in] input_evalues The array to copy the inputs into. The first
inputs_size() elements will be set to the corresponding input
values. The rest of the array will be set to the EValue value None.
@param[in] length The size of the input_evalues array in elements. Must
be greater than or equal to inputs_size().
@returns Error::Ok on success, non-Ok on failure.