dispose method

dynamic dispose()

Implementation

dispose() {
  this.pipelines = new WeakMap();
  this.stages = {"compute": new WeakMap()};
}