dispose method

void dispose()

Implementation

void dispose() {
  finalizer.detach(this);
  cdnn.Net_Close(ptr);
}