Java wrapper for torch::jit::script::Module.
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
destroycan free memory more quickly. See