We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0df320 commit ee90d08Copy full SHA for ee90d08
1 file changed
jetstream/engine/engine_api.py
@@ -82,6 +82,9 @@ class ResultTokens(abc.ABC):
82
83
def copy_to_host_async(self: "ResultTokens") -> None:
84
"""Copy to host asynchronously."""
85
+ # Do nothing for np array
86
+ if isinstance(self.data, np.ndarray):
87
+ return
88
self.data.copy_to_host_async()
89
90
def convert_to_numpy(self: "ResultTokens") -> "ResultTokens":
0 commit comments