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
fengzch-das
nunchaku
Commits
f549dfc6
Unverified
Commit
f549dfc6
authored
Mar 07, 2025
by
Muyang Li
Committed by
GitHub
Mar 07, 2025
Browse files
Merge pull request #146 from hdfhssg/main
Update Serialization.cpp
parents
07de11de
e9618ab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/Serialization.cpp
src/Serialization.cpp
+2
-0
No files found.
src/Serialization.cpp
View file @
f549dfc6
...
...
@@ -106,7 +106,9 @@ SafeTensors::SafeTensors(const std::string &filename) {
}
SafeTensors
::~
SafeTensors
()
{
#ifndef _WIN32
checkCUDA
(
cudaHostUnregister
(
const_cast
<
char
*>
(
this
->
mapped
->
data
())));
#endif
}
void
SafeTensors
::
parseHeader
()
{
...
...
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