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
MMCV
Commits
75ae2009
Unverified
Commit
75ae2009
authored
Jul 16, 2022
by
Happylkx
Committed by
GitHub
Jul 16, 2022
Browse files
[Docs] Correct mistakes of examples (#2120)
parent
f4167fe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/en/understand_mmcv/io.md
docs/en/understand_mmcv/io.md
+2
-2
No files found.
docs/en/understand_mmcv/io.md
View file @
75ae2009
...
...
@@ -195,8 +195,8 @@ disk_backend = HardDiskBackend()
with
io
.
BytesIO
(
disk_backend
.
get
(
filepath1
))
as
buffer
:
checkpoint
=
torch
.
load
(
buffer
)
with
io
.
BytesIO
()
as
buffer
:
torch
.
save
(
checkpoint
,
f
)
disk_backend
.
put
(
f
.
getvalue
(),
filepath2
)
torch
.
save
(
checkpoint
,
buffer
)
disk_backend
.
put
(
buffer
.
getvalue
(),
filepath2
)
```
If we want to implement an interface which automatically select the corresponding
...
...
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