Move some imports to when they are used to avoid ImportError when building the functor cached for platforms that contains +cuda11_4.
ImportError
+cuda11_4