[][src]Struct tensorflow::Variable

pub struct Variable { /* fields omitted */ }

Holds state in the form of a tensor that persists across steps.

Methods

impl Variable[src]

pub fn builder<'a>() -> VariableBuilder<'a>[src]

Creates a builder which can be used to create a Variable.

pub fn output(&self) -> &Output[src]

Returns the output which evaluates to the value of the variable.

pub fn initializer(&self) -> &Operation[src]

Returns the initializer.

pub fn data_type(&self) -> DataType[src]

Returns the data type.

pub fn shape(&self) -> &Shape[src]

Returns the shape.

Trait Implementations

impl Clone for Variable[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Variable[src]

Auto Trait Implementations

impl Send for Variable

impl Sync for Variable

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]