"vscode:/vscode.git/clone" did not exist on "cdfbdc0bd108a315ff8bf5ae5ef877084f30336a"
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) {
}
SafeTensors::~SafeTensors() {
#ifndef _WIN32
checkCUDA(cudaHostUnregister(const_cast<char *>(this->mapped->data())));
#endif
}
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