pub struct Var { /* private fields */ }
Expand description
Introduce variable to the system by creating Var
Create a variable using an existing variable.
Create a variable given the network.
This is for whoever has a network handler.
Getter for the id member.
Setter for the id member.
Give the variable a value
let mut m = Module::new();
let a = m.var();
a.set(Tensor::new());
Get the underlying tensor.
Get the underlying gradient tensor.
apply the var to pre-faburacated op.
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,