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
Merge requests
!48
Transformer encoder
代码
评审变更
检出分支
下载
补丁
文本差异
Closed
Transformer encoder
transformer_encoder
into
main
Overview
0
Commits
5
Pipelines
0
Changes
8
Closed
Martyna Wiącek
requested to merge
transformer_encoder
into
main
1 year ago
Overview
0
Commits
5
Pipelines
0
Changes
8
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
9c9ef559
5 commits,
1 year ago
8 files
+
463
−
109
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
combo/config/from_parameters.py
+
4
−
0
Options
@@ -58,6 +58,8 @@ def serialize_single_value(value: Any, pass_down_parameter_names: List[str] = No
return
{
k
:
serialize_single_value
(
v
,
pass_down_parameter_names
)
for
k
,
v
in
value
.
items
()}
elif
isinstance
(
value
,
int
)
or
isinstance
(
value
,
float
)
or
isinstance
(
value
,
str
):
return
value
elif
value
is
None
:
return
None
else
:
return
str
(
value
)
@@ -145,6 +147,8 @@ class FromParameters:
parameters_dict
=
{}
for
pn
,
param_value
in
parameters_to_serialize
.
items
():
if
pn
==
'
seq_encoder
'
:
a
=
0
if
pn
in
pass_down_parameter_names
:
continue
parameters_dict
[
pn
]
=
serialize_single_value
(
param_value
,