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
1fc0fa46
"examples/git@developer.sourcefind.cn:change/sglang.git" did not exist on "0fafc5606b0dc205518002dc2058e7b9a8d5019a"
Unverified
Commit
1fc0fa46
authored
Jan 21, 2022
by
kumapo
Committed by
GitHub
Jan 20, 2022
Browse files
Make sure to raise NotImplementedError with correct method name (#15253)
parent
f00f22a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+1
-1
No files found.
src/transformers/modeling_utils.py
View file @
1fc0fa46
...
@@ -600,7 +600,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
...
@@ -600,7 +600,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
"""
"""
Initialize the weights. This method should be overridden by derived class.
Initialize the weights. This method should be overridden by derived class.
"""
"""
raise
NotImplementedError
(
f
"Make sure `_init_weig
t
hs` is implemented for
{
self
.
__class__
}
"
)
raise
NotImplementedError
(
f
"Make sure `_init_weigh
t
s` is implemented for
{
self
.
__class__
}
"
)
def
tie_weights
(
self
):
def
tie_weights
(
self
):
"""
"""
...
...
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