Fix GPT conversion script (#9676)

This commit is contained in:
Sylvain Gugger 2021-01-19 09:55:37 -05:00 committed by Lysandre
parent c5f6719040
commit 0ed8bccc9c

View file

@ -19,9 +19,9 @@ import argparse
import torch import torch
from ...file_utils import CONFIG_NAME, WEIGHTS_NAME from transformers import OpenAIGPTConfig, OpenAIGPTModel, load_tf_weights_in_openai_gpt
from ...utils import logging from transformers.file_utils import CONFIG_NAME, WEIGHTS_NAME
from . import OpenAIGPTConfig, OpenAIGPTModel, load_tf_weights_in_openai_gpt from transformers.utils import logging
logging.set_verbosity_info() logging.set_verbosity_info()