graykode

(fixed) ImportError: attempted relative import with no known parent package

......@@ -12,6 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from .modeling_bart import BartForConditionalGeneration
from train.modeling_bart import BartForConditionalGeneration
__all__ = ["BartForConditionalGeneration"]
......
......@@ -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
......