[Bugfix] Only require XGrammar on x86 (#10865)
Signed-off-by: mgoin <michael@neuralmagic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from .interface import _Backend # noqa: F401
|
||||
from .interface import Platform, PlatformEnum, UnspecifiedPlatform
|
||||
from .interface import CpuArchEnum, Platform, PlatformEnum, UnspecifiedPlatform
|
||||
|
||||
current_platform: Platform
|
||||
|
||||
@@ -120,4 +120,4 @@ elif is_openvino:
|
||||
else:
|
||||
current_platform = UnspecifiedPlatform()
|
||||
|
||||
__all__ = ['Platform', 'PlatformEnum', 'current_platform']
|
||||
__all__ = ['Platform', 'PlatformEnum', 'current_platform', 'CpuArchEnum']
|
||||
|
||||
Reference in New Issue
Block a user