Skip to content

Commit

Permalink
Add false for arg worker0_only in disco.empty (#2344)
Browse files Browse the repository at this point in the history
  • Loading branch information
yongwww authored May 15, 2024
1 parent 2bbbd52 commit 227dbb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/llm_chat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ struct FunctionTable {
Device null_device{DLDeviceType(0), 0};
if (this->use_disco) {
DRef empty_func = sess->GetGlobalFunc("runtime.disco.empty");
return sess->CallPacked(empty_func, shape, dtype, null_device);
return sess->CallPacked(empty_func, shape, dtype, null_device, false);
} else {
return NDArray::Empty(shape, dtype, device);
}
Expand Down
2 changes: 1 addition & 1 deletion cpp/serve/function_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ ObjectRef FunctionTable::Empty(ShapeTuple shape, DataType dtype, Device device)
Device null_device{DLDeviceType(0), 0};
if (this->use_disco) {
DRef empty_func = sess->GetGlobalFunc("runtime.disco.empty");
return sess->CallPacked(empty_func, shape, dtype, null_device);
return sess->CallPacked(empty_func, shape, dtype, null_device, false);
} else {
return NDArray::Empty(shape, dtype, device);
}
Expand Down

0 comments on commit 227dbb8

Please sign in to comment.