[TPU] Async output processing for TPU (#8011)
This commit is contained in:
@@ -347,10 +347,10 @@ class ModelConfig:
|
||||
self.use_async_output_proc = False
|
||||
return
|
||||
|
||||
if device_config.device_type != "cuda":
|
||||
if device_config.device_type not in ("cuda", "tpu"):
|
||||
logger.warning(
|
||||
"Async output processing is only supported for CUDA."
|
||||
" Disabling it for other platforms.")
|
||||
"Async output processing is only supported for CUDA or TPU. "
|
||||
"Disabling it for other platforms.")
|
||||
self.use_async_output_proc = False
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user