[][src]Struct tensorflow::Variable

pub struct Variable { /* fields omitted */ }

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


impl Variable[src]

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

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

pub fn name(&self) -> &str[src]

Returns the name.

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]

impl Debug for Variable[src]

Auto Trait Implementations

impl Send for Variable

impl Sync for Variable

impl Unpin for Variable

impl UnwindSafe for Variable

impl RefUnwindSafe for Variable

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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