Use the same pattern as everywhere else.

This is really just for consistency.
This commit is contained in:
Aymeric Augustin 2019-12-23 21:30:04 +01:00
parent a31d4a2971
commit 4621ad6f9d

View File

@ -26,14 +26,12 @@ from collections import Counter, OrderedDict
import numpy as np
from .file_utils import cached_path
from .file_utils import cached_path, is_torch_available
from .tokenization_utils import PreTrainedTokenizer
try:
if is_torch_available():
import torch
except ImportError:
pass
logger = logging.getLogger(__name__)