-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public final class TrainingModule implements Closeable
Kotlin wrapper for ExecuTorch TrainingModule.
Warning: These APIs are experimental and subject to change without notice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTrainingModule.Companion
-
Method Summary
Modifier and Type Method Description final Array<EValue>executeForwardBackward(String methodName, EValue inputs)Runs the specified joint-graph method of this module with the specified arguments. final Map<String, Tensor>namedParameters(String methodName)final Map<String, Tensor>namedGradients(String methodName)Unitclose()-
-
Method Detail
-
executeForwardBackward
final Array<EValue> executeForwardBackward(String methodName, EValue inputs)
Runs the specified joint-graph method of this module with the specified arguments.
- Parameters:
methodName- name of the ExecuTorch method to run.inputs- arguments that will be passed to ExecuTorch method.
-
namedParameters
final Map<String, Tensor> namedParameters(String methodName)
-
namedGradients
final Map<String, Tensor> namedGradients(String methodName)
-
-
-
-