Added class method to detect if torch is available