Skip to content

Commit

Permalink
fake时更新unitsize
Browse files Browse the repository at this point in the history
  • Loading branch information
黄宇扬 committed Aug 13, 2024
1 parent d3778c7 commit 7d1973a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fastllm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ namespace fastllm {

void Data::FakeFrom(const Data &ori, size_t offset) {
this->dataType = ori.dataType;
this->UpdateUnitSize();
this->isFake = true;
this->dataDevice = ori.dataDevice;
if (this->dataDevice == DataDevice::CPU) {
Expand Down

0 comments on commit 7d1973a

Please sign in to comment.