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
89e9aa77
There was an error fetching the commit references. Please try again later.
Commit
89e9aa77
authored
1 year ago
by
Martyna Wiącek
Browse files
Options
Downloads
Patches
Plain Diff
fixed from params
parent
8ec4d271
1 merge request
!48
Transformer encoder
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
combo/config/from_parameters.py
+1
-1
1 addition, 1 deletion
combo/config/from_parameters.py
with
1 addition
and
1 deletion
combo/config/from_parameters.py
+
1
−
1
View file @
89e9aa77
...
...
@@ -59,7 +59,7 @@ 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
isinstance
(
value
,
None
Type
)
:
elif
value
is
None
:
return
None
else
:
return
str
(
value
)
...
...
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