[][src]Module tensorflow::ops

This module exposes functions for building standard operations.

This module currently requires the experimental_training feature.

Each operation has a struct which can be used as a builder and allows setting optional attributes:

This example is not tested
MatMul::new().transpose_a(true).build(a, b, &mut scope)?;

and a function which is shorter when no attributes need to be set:

This example is not tested
mat_mul(a, b, &mut scope)

Structs

Add

Builder for the Add operation.

Assign

Builder for the Assign operation.

MatMul

Builder for the MatMul operation.

Multiply

Builder for the Mul operation.

NoOp

Builder for the NoOp operation.

Placeholder

Builder for the Placeholder operation.

RandomNormal

Builder for the RandomStandardNormal operation.

Subtract

Builder for the Sub operation.

Tanh

Builder for the Tanh operation.

ZerosLike

Builder for the ZerosLike operation.

Functions

add

Shorthand for Add::new().build(scope), a, b).

assign

Shorthand for Assign::new().build(scope), a, b).

constant

Creates a constant.

mat_mul

Shorthand for MatMul::new().build(scope), a, b).

multiply

Shorthand for Multiply::new().build(scope), a, b).

no_op

Shorthand for NoOp::new().build(scope)).

placeholder

Shorthand for Placeholder::new().build(scope)).

random_normal

Shorthand for RandomNormal::new().build(scope), x).

subtract

Shorthand for Subtract::new().build(scope), a, b).

tanh

Shorthand for Tanh::new().build(scope), x).

zeros_like

Shorthand for ZerosLike::new().build(scope), x).