tfd.graph

TF_Graph wrapper.

Members

Functions

Add
TF_Operation* Add(TF_Operation* l, TF_Operation* r, TF_Graph* graph, TF_Status* s, const(char)* name)

Adds two tensors.

Const
TF_Operation* Const(TF_Tensor* t, TF_Graph* graph, TF_Status* s, const(char)* name)

TODO(karita): use pbd instead of protobuf-c alias AttrValue = Tensorflow__AttrValue;

Placeholder
TF_Operation* Placeholder(TF_Graph* graph, TF_Status* s, const(char)* name, TF_DataType dtype, long[N] dims)

Creates a new placeholder in a given graph.

ScalarConst
TF_Operation* ScalarConst(int v, TF_Graph* graph, TF_Status* s, const(char)* name)

Creates a scalar const tensor.

newGraph
Graph newGraph()

Creates a new reference-counted Graph object.

Structs

Graph
struct Graph

Shared GraphOwner type.

GraphOwner
struct GraphOwner

TF_Graph freed by dtor (RAII) with convinient methods.

Operation
struct Operation

TF_Operation wrapper used in Graph.

Meta