1
0
mirror of https://github.com/QData/TextAttack.git synced 2021-10-13 00:05:06 +03:00

add missing logger

This commit is contained in:
Jin Yong Yoo
2020-05-23 04:55:29 -04:00
parent a5dfc23894
commit 0191c4ac5c

View File

@@ -10,6 +10,8 @@ import tqdm
from .run_attack_args_helper import *
logger = textattack.shared.utils.get_logger()
def set_env_variables(gpu_id):
# Set sharing strategy to file_system to avoid file descriptor leaks
torch.multiprocessing.set_sharing_strategy('file_system')