pub struct Value<T> {
pub value: Rc<RefCell<T>>,
pub gradient: Rc<RefCell<T>>,
}Expand description
Value node for computation graph
Fields§
§value: Rc<RefCell<T>>§gradient: Rc<RefCell<T>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Value<T>
impl<T> !RefUnwindSafe for Value<T>
impl<T> !Send for Value<T>
impl<T> !Sync for Value<T>
impl<T> Unpin for Value<T>
impl<T> !UnwindSafe for Value<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more