candle icon indicating copy to clipboard operation
candle copied to clipboard

Add `Device::best_device`, `Device::metal_if_available`

Open EricLBuehler opened this issue 1 year ago • 0 comments

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.

EricLBuehler avatar Aug 08 '24 20:08 EricLBuehler