Skip to content

Commit

Permalink
Reset memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-Yu committed Nov 13, 2023
1 parent 2d0f4dc commit a80bdcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/weight_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ int readFile(const std::string &path, T *values, int size) {
int enable = (getenv("XFT_FAKE_MODEL") ? atoi(getenv("XFT_FAKE_MODEL")) : 0);
if (enable) {
printf("Loading fake model file %s.\n", path.c_str());
memset(values, 0, size * sizeof(T));
return size;
}

Expand Down

0 comments on commit a80bdcc

Please sign in to comment.