Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
872403be
Commit
872403be
authored
Nov 11, 2019
by
Julien Chaumond
Browse files
This is not a @property after all
parent
dd6b2e05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
templates/adding_a_new_model/modeling_xxx.py
templates/adding_a_new_model/modeling_xxx.py
+0
-1
No files found.
templates/adding_a_new_model/modeling_xxx.py
View file @
872403be
...
@@ -284,7 +284,6 @@ class XxxModel(XxxPreTrainedModel):
...
@@ -284,7 +284,6 @@ class XxxModel(XxxPreTrainedModel):
self
.
init_weights
()
self
.
init_weights
()
@
property
def
get_input_embeddings
(
self
):
def
get_input_embeddings
(
self
):
return
self
.
embeddings
.
word_embeddings
return
self
.
embeddings
.
word_embeddings
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment