[][src]Struct tensorflow::OperationDescription

pub struct OperationDescription<'a> { /* fields omitted */ }

An OperationDescription is an Operation in the process of being built (i.e. the builder pattern).

An OperationDescription is required to be finished before the graph goes out of scope, so finish() will be called on drop if it was not already called.

Methods

impl<'a> OperationDescription<'a>
[src]

Builds the operation and adds it to the graph.

Sets the preferred device. The empty string means unconstrained.

Adds an input to this operation.

The index in the port is an index into the source operation's output array.

Adds multiple inputs to this operation.

The index in the ports is an index into the source operation's output array.

Adds a control input.

Sets the value of a string attribute.

Sets the value of an attribute which holds a list of strings.

Sets the value of a function attribute.

Sets an int-valued attribute.

Sets an attribute which holds an array of ints.

Sets a float-valued attribute.

Sets an attribute which holds an array of floats.

Sets a boolean-valued attribute.

Sets an attribute which holds an array of booleans.

Sets a type-valued attribute.

Sets an attribute which holds an array of types.

Sets a shape-valued attribute.

Sets an attribute which holds an array of shapes.

Sets an attribute with a TensorShapeProto protobuf.

Sets an attribute with an array of TensorShapeProto protobufs.

Sets a tensor-valued attribute.

Sets an attribute which holds an array of tensors.

Deprecated since 0.7.0

: Use set_attr_value_proto instead.

Sets an attribute with an AttrValue proto.

Sets an attribute with an AttrValue proto.

Trait Implementations

impl<'a> Drop for OperationDescription<'a>
[src]

impl<'a> Debug for OperationDescription<'a>
[src]

Auto Trait Implementations

impl<'a> !Send for OperationDescription<'a>

impl<'a> !Sync for OperationDescription<'a>

Blanket Implementations

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

impl<T> From for T
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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