diff options
author | Daniƫl de Kok <me@github.danieldk.eu> | 2024-02-06 15:26:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 15:26:11 +0100 |
commit | a90fc5ca5a486e988d39ea69ee3d3bb40a39c017 (patch) | |
tree | e53d0d27b5a5843dd0f9ce040ff6e4a65d6776dc /candle-core/tests/pth.py | |
parent | adfae2460ac39a76fb15b1543ebe056c1d7b785f (diff) | |
download | candle-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