Reorganize repo (#8580)
* Put models in subfolders * Styling * Fix imports in tests * More fixes in test imports * Sneaky hidden imports * Fix imports in doc files * More sneaky imports * Finish fixing tests * Fix examples * Fix path for copies * More fixes for examples * Fix dummy files * More fixes for example * More model import fixes * Is this why you're unhappy GitHub? * Fix imports in conver command
This commit is contained in:
@@ -28,12 +28,12 @@ if is_torch_available():
|
||||
import torch
|
||||
|
||||
from transformers import AutoModelWithLMHead, MarianMTModel
|
||||
from transformers.convert_marian_to_pytorch import (
|
||||
from transformers.models.bart.modeling_bart import shift_tokens_right
|
||||
from transformers.models.marian.convert_marian_to_pytorch import (
|
||||
ORG_NAME,
|
||||
convert_hf_name_to_opus_name,
|
||||
convert_opus_name_to_hf_name,
|
||||
)
|
||||
from transformers.modeling_bart import shift_tokens_right
|
||||
from transformers.pipelines import TranslationPipeline
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user