void FinalizePix2Pix() { _generator.Dispose(); Pix2Pix.WeightReader.DisposeTable(_weightTable); _sourceTensor.Dispose(); _resultTensor.Dispose(); }
void FinalizePix2Pix() { if (_generator != null) { _generator.Dispose(); } if (_weightTable != null) { Pix2Pix.WeightReader.DisposeTable(_weightTable); } isInitialized = false; }
void FinalizePix2Pix() { _generator.Dispose(); Pix2Pix.WeightReader.DisposeTable(_weightTable); }