mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Use the same pattern as everywhere else.
This is really just for consistency.
This commit is contained in:
parent
a31d4a2971
commit
4621ad6f9d
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user