Reformatting module class. (#29957)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29957
Reformatting module class.
ghstack-source-id: 94058645
Test Plan: buck build xplat/caffe2/android:pytorch
Reviewed By: iseeyuan
Differential Revision: D18548185
fbshipit-source-id: 8c1f5cbf491d42915e091e6245b4f308eb162f93
diff --git a/android/pytorch_android/src/main/java/org/pytorch/Module.java b/android/pytorch_android/src/main/java/org/pytorch/Module.java
index 67dba80..9625853 100644
--- a/android/pytorch_android/src/main/java/org/pytorch/Module.java
+++ b/android/pytorch_android/src/main/java/org/pytorch/Module.java
@@ -6,9 +6,7 @@
import com.facebook.soloader.nativeloader.NativeLoader;
import com.facebook.soloader.nativeloader.SystemDelegate;
-/**
- * Java wrapper for torch::jit::script::Module.
- */
+/** Java wrapper for torch::jit::script::Module. */
public class Module {
private NativePeer mNativePeer;
@@ -44,7 +42,7 @@
* Runs the specified method of this module with the specified arguments.
*
* @param methodName name of the TorchScript method to run.
- * @param inputs arguments that will be passed to TorchScript method.
+ * @param inputs arguments that will be passed to TorchScript method.
* @return return value from the method.
*/
public IValue runMethod(String methodName, IValue... inputs) {
@@ -52,11 +50,10 @@
}
/**
- * Explicitly destroys the native torch::jit::script::Module.
- * Calling this method is not required, as the native object will be destroyed
- * when this object is garbage-collected. However, the timing of garbage collection
- * is not guaranteed, so proactively calling {@code destroy} can free memory more quickly.
- * See {@link com.facebook.jni.HybridData#resetNative}.
+ * Explicitly destroys the native torch::jit::script::Module. Calling this method is not required,
+ * as the native object will be destroyed when this object is garbage-collected. However, the
+ * timing of garbage collection is not guaranteed, so proactively calling {@code destroy} can free
+ * memory more quickly. See {@link com.facebook.jni.HybridData#resetNative}.
*/
public void destroy() {
mNativePeer.mHybridData.resetNative();