summaryrefslogtreecommitdiff
path: root/candle-core/tests/pth.py
diff options
context:
space:
mode:
authorDaniƫl de Kok <me@github.danieldk.eu>2024-02-06 15:26:11 +0100
committerGitHub <noreply@github.com>2024-02-06 15:26:11 +0100
commita90fc5ca5a486e988d39ea69ee3d3bb40a39c017 (patch)
treee53d0d27b5a5843dd0f9ce040ff6e4a65d6776dc /candle-core/tests/pth.py
parentadfae2460ac39a76fb15b1543ebe056c1d7b785f (diff)
downloadcandle-a90fc5ca5a486e988d39ea69ee3d3bb40a39c017.tar.gz
candle-a90fc5ca5a486e988d39ea69ee3d3bb40a39c017.tar.bz2
candle-a90fc5ca5a486e988d39ea69ee3d3bb40a39c017.zip
Add `VarBuilder::from_backend` (#1670)
`candle-nn` already exposes a trait to define custom backends. However, it's not possible to actually construct a `VarBuilder` with a custom backend because the constructor is not exposed. This change makes the constructor public and renames it from `new` to `from_backend` to avoid that it is seen as the primary constructor (which could be confusing to users).
Diffstat (limited to 'candle-core/tests/pth.py')
0 files changed, 0 insertions, 0 deletions