[V1][Bugfix] Fix oracle for device checking (#15104)
Signed-off-by: Roger Wang <ywang@roblox.com>
This commit is contained in:
@@ -1578,6 +1578,13 @@ class EngineArgs:
|
|||||||
_raise_or_fallback(feature_name=name, recommend_to_remove=True)
|
_raise_or_fallback(feature_name=name, recommend_to_remove=True)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# No support for device type other than CUDA, AMD (experiemntal) or
|
||||||
|
# TPU (experimental) so far.
|
||||||
|
if not (current_platform.is_cuda_alike() or current_platform.is_tpu()):
|
||||||
|
_raise_or_fallback(
|
||||||
|
feature_name=f"device type={current_platform.device_type}",
|
||||||
|
recommend_to_remove=False)
|
||||||
|
return False
|
||||||
#############################################################
|
#############################################################
|
||||||
# Experimental Features - allow users to opt in.
|
# Experimental Features - allow users to opt in.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user