docs: @Override
      public void destroyAllWorkspacesForCurrentThread() {
          ensureThreadExistense();
  
          List<MemoryWorkspace> workspaces = new ArrayList<>();
          workspaces.addAll(backingMap.get().values());
  
          for (MemoryWorkspace workspace : workspaces) {
              destroyWorkspace(workspace);
          }
  
          Nd4j.getMemoryManager().invokeGc();
      }