} finally { log.debug("Terminating all workspaces for trainer_{}", threadId); Nd4j.getWorkspaceManager().destroyAllWorkspacesForCurrentThread(); isStopped.set(true);
} finally { log.debug("Terminating all workspaces for trainer_{}", threadId); Nd4j.getWorkspaceManager().destroyAllWorkspacesForCurrentThread(); isStopped.set(true);