dispose method

void dispose()

Free allocated memory

Implementation

void dispose() {
  if (_tensorSplitPtr != null) {
    malloc.free(_tensorSplitPtr!);
    _tensorSplitPtr = null;
  }
  if (_rpcServersPtr != null) {
    malloc.free(_rpcServersPtr!);
    _rpcServersPtr = null;
  }
}