graykode

(refactor) fixed relative import paths

# Copyright 2020-present Tae Hwan Jung
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from .modeling_bart import BartForConditionalGeneration
__all__ = [
'BartForConditionalGeneration'
]
\ No newline at end of file
......@@ -21,7 +21,7 @@ from transformers import (
PretrainedConfig,
PreTrainedTokenizer,
)
from modeling_bart import BartForConditionalGeneration
from .modeling_bart import BartForConditionalGeneration
from transformers.optimization import (
Adafactor,
......
......@@ -41,7 +41,7 @@ from transformers.modeling_outputs import (
Seq2SeqQuestionAnsweringModelOutput,
Seq2SeqSequenceClassifierOutput,
)
from modeling_utils import PreTrainedModel
from .modeling_utils import PreTrainedModel
import logging
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
......
......@@ -39,7 +39,7 @@ from transformers.file_utils import (
is_torch_tpu_available,
replace_return_docstrings,
)
from generation_utils import GenerationMixin
from .generation_utils import GenerationMixin
import logging
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
......