Unverified Commit e9618ab9 authored by PengXin's avatar PengXin Committed by GitHub
Browse files

Update Serialization.cpp

Used to resolve Windows 10 crash issues.
parent 8e3bab93
...@@ -106,7 +106,9 @@ SafeTensors::SafeTensors(const std::string &filename) { ...@@ -106,7 +106,9 @@ SafeTensors::SafeTensors(const std::string &filename) {
} }
SafeTensors::~SafeTensors() { SafeTensors::~SafeTensors() {
#ifndef _WIN32
checkCUDA(cudaHostUnregister(const_cast<char *>(this->mapped->data()))); checkCUDA(cudaHostUnregister(const_cast<char *>(this->mapped->data())));
#endif
} }
void SafeTensors::parseHeader() { void SafeTensors::parseHeader() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment