What's VarBuilder? #2076
-
What's VarBuilder and why do I need it? let varmap = VarMap::new();
let vs = VarBuilder::from_varmap(&varmap, DType::F32, dev); saw it from |
Beta Was this translation helpful? Give feedback.
Answered by
EricLBuehler
Apr 17, 2024
Replies: 1 comment 2 replies
-
At a high level, a VarBuilder manages the parameters of your model. In that sense, it is equivalent to how Pytorch tracks your parameters automatically. At a low level the VarBuilder holds all the Tensors which are accessed by using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it is.