device agnostic testing (#2123)
* device agnostic testing
* initilaize accelerate state before using the logging utility
* apply review suggestion
* apply review suggestion
Co-authored-by: Zach Mueller <muellerzr@gmail.com>
* use `hardware accelerator` to disambiguate
* remove redundant guard code
* rename variable name for consistency
* remove the overkilled codes
* fix ci-error
---------
Co-authored-by: Zach Mueller <muellerzr@gmail.com>