Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
afee044b
"git@developer.sourcefind.cn:one/TransferBench.git" did not exist on "569287a74a72a7e2ded5f5b745c6fa1b29f320c0"
Unverified
Commit
afee044b
authored
Nov 23, 2023
by
Rhett Ying
Committed by
GitHub
Nov 23, 2023
Browse files
[GraphBolt] fix bug in pydantic 1.x (#6607)
parent
f915ceed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/graphbolt/impl/ondisk_metadata.py
python/dgl/graphbolt/impl/ondisk_metadata.py
+1
-1
No files found.
python/dgl/graphbolt/impl/ondisk_metadata.py
View file @
afee044b
...
...
@@ -47,7 +47,7 @@ class ExtraMetaData(pydantic.BaseModel, extra="allow"):
def
build_extra
(
cls
,
values
:
Dict
[
str
,
Any
])
->
Dict
[
str
,
Any
]:
"""Build extra fields."""
for
key
in
list
(
values
.
keys
()):
if
key
not
in
[
"train_set"
,
"validation_set"
,
"test_set"
]
:
if
key
not
in
cls
.
__fields__
:
values
[
"extra_fields"
]
=
values
.
get
(
"extra_fields"
,
{})
values
[
"extra_fields"
][
key
]
=
values
.
pop
(
key
)
return
values
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment