Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Merge requests
!48
Transformer encoder
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
Transformer encoder
transformer_encoder
into
main
Overview
0
Commits
5
Pipelines
0
Changes
8
Closed
Transformer encoder
Martyna Wiącek
requested to merge
transformer_encoder
into
main
Feb 4, 2024
Overview
0
Commits
5
Pipelines
0
Changes
8
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
9c9ef559
5 commits,
Feb 4, 2024
8 files
+
463
−
109
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
combo/config/from_parameters.py
+
4
−
0
View file @ 9c9ef559
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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
,
Loading