summaryrefslogtreecommitdiff
path: root/candle-pyo3
diff options
context:
space:
mode:
authorPatrick von Platen <patrick.v.platen@gmail.com>2023-08-23 10:29:50 +0200
committerGitHub <noreply@github.com>2023-08-23 09:29:50 +0100
commit3743bed2d7bc02069770902e4a956aeabaef5453 (patch)
tree9c65de5294df407e9146a2d169481d37006137fb /candle-pyo3
parent508d34daf291589058929df8d91565cfce9c4375 (diff)
downloadcandle-3743bed2d7bc02069770902e4a956aeabaef5453.tar.gz
candle-3743bed2d7bc02069770902e4a956aeabaef5453.tar.bz2
candle-3743bed2d7bc02069770902e4a956aeabaef5453.zip
Fix the `?` operator cannot be applied to type `Device` of example (#560)
According to the API: ```rust inp = inp.to_device(&Device::Cuda(0)?)?; ``` cannot work as `Cuda(...)` expects a type `Device` not an integer. I'd recommend to instead use `new_cuda(...)`
Diffstat (limited to 'candle-pyo3')
0 files changed, 0 insertions, 0 deletions