dispose
Disposes of an UpscalerJS instance and clears up any used memory. Ensure any active execution events have first been aborted before disposing of the model.
Example
const upscaler = new Upscaler();
upscaler.dispose().then(() => {
console.log("All cleaned up!");
})
Returns
Promise<void>