JohnSnowLabs / nlu

1 line for thousands of State of The Art NLP models in hundreds of languages The fastest and most accurate way to solve text problems.
Apache License 2.0
861 stars 130 forks source link

[M1] Added function to check for M1 #136

Open DevinTDHa opened 2 years ago

DevinTDHa commented 2 years ago

This PR adds a function to env_utils.py to allow for automated checking for an M1 chip.

This is done by querying kernel information and checking whether the extracted string for the CPU lines up with "Apple M1" (other processor versions are not supported yet).