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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user