Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,19 @@ public static Module load(final String modelPath) {
/**
* Runs the 'forward' method of this module with the specified arguments.
*
* @param inputs arguments for the ExecuTorch module's 'forward' method. Note: if method 'forward'
* requires inputs but no inputs are given, the function will not error out, but run 'forward'
* with sample inputs.
* @param inputs arguments for the ExecuTorch module's 'forward' method. This function is not
* thread safe and must not be called while a previous inference is in progress. Additionally,
* if method 'forward' requires inputs but no inputs are given, the function will not error
* out, but run 'forward' with sample inputs.
* @return return value from the 'forward' method.
*/
public EValue[] forward(EValue... inputs) {
return mNativePeer.forward(inputs);
}

/**
* Runs the specified method of this module with the specified arguments.
* Runs the specified method of this module with the specified arguments. This function is not
* thread safe and must not be called while a previous inference is in progress.
*
* @param methodName name of the ExecuTorch method to run.
* @param inputs arguments that will be passed to ExecuTorch method.
Expand Down
Loading