Toggle navigation
Toggle navigation
This project
Loading...
Sign in
graykode
/
commit-autosuggestions
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
graykode
2020-09-09 21:41:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f8021c1ec802dd37b415b374fd40d65e10c2f94
9f8021c1
1 parent
9b9ed4f6
(fixed) ImportError: attempted relative import with no known parent package
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
train/__init__.py
train/lightning_base.py
train/modeling_bart.py
train/modeling_utils.py
train/__init__.py
View file @
9f8021c
...
...
@@ -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"
]
...
...
train/lightning_base.py
View file @
9f8021c
...
...
@@ -21,7 +21,7 @@ from transformers import (
PretrainedConfig
,
PreTrainedTokenizer
,
)
from
.
modeling_bart
import
BartForConditionalGeneration
from
modeling_bart
import
BartForConditionalGeneration
from
transformers.optimization
import
(
Adafactor
,
...
...
train/modeling_bart.py
View file @
9f8021c
...
...
@@ -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
...
...
train/modeling_utils.py
View file @
9f8021c
...
...
@@ -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
...
...
Please
register
or
login
to post a comment