candle
candle copied to clipboard
Add `Device::best_device`, `Device::metal_if_available`
Adds the aforementioned methods to Device. The Device::best_device has the same functionality as candle_examples::device, and this PR changes candle_examples::device to use best_device. metal_if_available has been added for parity with cuda_if_available.