"vscode:/vscode.git/clone" did not exist on "6f9c20c3b686effc3f5b52a8d5d9838bcc52aca0"
Unverified Commit 18d89b5d authored by Minjie Wang's avatar Minjie Wang Committed by GitHub
Browse files

Revert "[Dist] New distributed data preparation pipeline (#4386)" (#4391)

This reverts commit 71ce1749.
parent 71ce1749
import os
from contextlib import contextmanager
import logging
from numpy.lib.format import open_memmap
@contextmanager
def setdir(path):
try:
os.makedirs(path, exist_ok=True)
cwd = os.getcwd()
logging.info('Changing directory to %s' % path)
logging.info('Previously: %s' % cwd)
os.chdir(path)
yield
finally:
logging.info('Restoring directory to %s' % cwd)
os.chdir(cwd)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment