Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
49014454
Unverified
Commit
49014454
authored
1 year ago
by
Jan Buethe
Browse files
Options
Downloads
Patches
Plain Diff
fixed type in error message
parent
c5c214df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#4098
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dnn/torch/weight-exchange/wexchange/torch/torch.py
+2
-2
2 additions, 2 deletions
dnn/torch/weight-exchange/wexchange/torch/torch.py
with
2 additions
and
2 deletions
dnn/torch/weight-exchange/wexchange/torch/torch.py
+
2
−
2
View file @
49014454
...
...
@@ -194,7 +194,7 @@ def dump_torch_weights(where, module, name=None, verbose=False, **kwargs):
elif
isinstance
(
module
,
torch
.
nn
.
Embedding
):
return
dump_torch_embedding_weights
(
where
,
module
)
else
:
raise
ValueError
(
f
'
dump_t
f
_weights: layer of type
{
type
(
module
)
}
not supported
'
)
raise
ValueError
(
f
'
dump_t
orch
_weights: layer of type
{
type
(
module
)
}
not supported
'
)
def
load_torch_weights
(
where
,
module
):
"""
generic function for loading weights of some torch.nn.Module
"""
...
...
@@ -209,4 +209,4 @@ def load_torch_weights(where, module):
elif
isinstance
(
module
,
torch
.
nn
.
Embedding
):
load_torch_embedding_weights
(
where
,
module
)
else
:
raise
ValueError
(
f
'
dump_tf_weights: layer of type
{
type
(
module
)
}
not supported
'
)
\ No newline at end of file
raise
ValueError
(
f
'
dump_torch_weights: layer of type
{
type
(
module
)
}
not supported
'
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment