Skip to content

Commit ee90d08

Browse files
authored
do nothing for nd array (#52)
1 parent a0df320 commit ee90d08

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

jetstream/engine/engine_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ class ResultTokens(abc.ABC):
8282

8383
def copy_to_host_async(self: "ResultTokens") -> None:
8484
"""Copy to host asynchronously."""
85+
# Do nothing for np array
86+
if isinstance(self.data, np.ndarray):
87+
return
8588
self.data.copy_to_host_async()
8689

8790
def convert_to_numpy(self: "ResultTokens") -> "ResultTokens":

0 commit comments

Comments
 (0)