Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Commits
7a7a1ac6
Commit
7a7a1ac6
authored
2 years ago
by
Maja Jabłońska
Committed by
Martyna Wiącek
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Correct minor mistakes in embeddings.py
parent
d79f8224
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!46
Merge COMBO 3.0 into master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
combo/models/embeddings.py
+2
-2
2 additions, 2 deletions
combo/models/embeddings.py
with
2 additions
and
2 deletions
combo/models/embeddings.py
+
2
−
2
View file @
7a7a1ac6
from
typing
import
Optional
from
typing
import
Optional
,
List
import
torch
from
overrides
import
overrides
...
...
@@ -151,7 +151,7 @@ class _TorchEmbedder(TokenEmbedder):
embedded
=
self
.
_embedding
(
x
)
if
self
.
_projection
:
projection
=
self
.
_projection
for
_
in
range
(
embedded
.
dim
()
-
2
):
for
p
in
range
(
embedded
.
dim
()
-
2
):
projection
=
TimeDistributed
(
p
)
embedded
=
projection
(
embedded
)
return
embedded
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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