@Namespace(value="tensorflow") @NoOffset public static class tensorflow.Graph extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Modifier and Type | Field and Description |
|---|---|
static int |
kControlSlot |
static int |
kSinkId
enum tensorflow::Graph::
|
static int |
kSourceId
enum tensorflow::Graph::
|
| Constructor and Description |
|---|
Graph(Pointer p)
Pointer cast constructor.
|
Graph(tensorflow.FunctionLibraryDefinition flib_def) |
Graph(tensorflow.OpRegistryInterface registry) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic static final int kControlSlot
public static final int kSourceId
public static final int kSinkId
public Graph(Pointer p)
Pointer.Pointer(Pointer).public Graph(@Const tensorflow.OpRegistryInterface registry)
public Graph(@Const @ByRef tensorflow.FunctionLibraryDefinition flib_def)
@MemberGetter public static int kControlSlot()
@Const @ByRef public tensorflow.VersionDef versions()
public void set_versions(@Const @ByRef tensorflow.VersionDef versions)
public tensorflow.Node AddNode(@Const @ByRef tensorflow.NodeDef node_def, tensorflow.Status status)
public tensorflow.Node CopyNode(@Const tensorflow.Node node)
public void RemoveNode(tensorflow.Node node)
@Const public tensorflow.Edge AddEdge(tensorflow.Node source, int x, tensorflow.Node dest, int y)
@Const public tensorflow.Edge AddControlEdge(tensorflow.Node source, tensorflow.Node dest, @Cast(value="bool") boolean allow_duplicates)
@Const public tensorflow.Edge AddControlEdge(tensorflow.Node source, tensorflow.Node dest)
public void RemoveEdge(@Const tensorflow.Edge edge)
public void RemoveControlEdge(@Const tensorflow.Edge e)
@ByVal public tensorflow.Status UpdateEdge(tensorflow.Node new_src, int new_src_index, tensorflow.Node dst, int dst_index)
@ByVal public tensorflow.Status AddFunctionLibrary(@Const @ByRef tensorflow.FunctionDefLibrary fdef_lib)
public int num_nodes()
public int num_op_nodes()
public int num_edges()
public void ToGraphDefSubRange(tensorflow.GraphDef graph_def, int from_node_id)
public void ToGraphDef(tensorflow.GraphDef graph_def)
@ByVal public tensorflow.GraphDef ToGraphDefDebug()
@StdString public BytePointer NewName(@tensorflow.StringPiece BytePointer prefix)
@StdString public String NewName(@tensorflow.StringPiece String prefix)
@ByVal public tensorflow.NodeIterRange nodes()
@ByVal public tensorflow.NodeIterRange op_nodes()
public int num_node_ids()
public tensorflow.Node FindNodeId(int id)
public int num_edge_ids()
@Const public tensorflow.Edge FindEdgeId(int id)
@ByVal public tensorflow.GraphEdgesIterable edges()
public tensorflow.Node source_node()
public tensorflow.Node sink_node()
@Const public tensorflow.OpRegistryInterface op_registry()
@Const @ByRef public tensorflow.FunctionLibraryDefinition flib_def()
public void CheckDeviceNameIndex(int index)
public int InternDeviceName(@StdString BytePointer device_name)
public int InternDeviceName(@StdString String device_name)
@StdString public BytePointer get_assigned_device_name(@Const @ByRef tensorflow.Node node)
public void set_assigned_device_name_index(tensorflow.Node node, int device_name_index)
public void set_assigned_device_name(tensorflow.Node node, @StdString BytePointer device_name)
public void set_assigned_device_name(tensorflow.Node node, @StdString String device_name)
@ByVal public tensorflow.Status IsValidNode(@Const tensorflow.Node node)
@ByVal public tensorflow.Status IsValidOutputTensor(@Const tensorflow.Node node, int idx)
@ByVal public tensorflow.Status IsValidInputTensor(@Const tensorflow.Node node, int idx)
@ByVal public tensorflow.Status AddWhileContext(@tensorflow.StringPiece BytePointer frame_name, @ByVal tensorflow.NodeVector enter_nodes, @ByVal tensorflow.NodeVector exit_nodes, @ByVal tensorflow.OutputTensor cond_output, @StdVector tensorflow.OutputTensor body_inputs, @StdVector tensorflow.OutputTensor body_outputs, @Cast(value="tensorflow::WhileContext**") PointerPointer result)
@ByVal public tensorflow.Status AddWhileContext(@tensorflow.StringPiece BytePointer frame_name, @ByVal tensorflow.NodeVector enter_nodes, @ByVal tensorflow.NodeVector exit_nodes, @ByVal tensorflow.OutputTensor cond_output, @StdVector tensorflow.OutputTensor body_inputs, @StdVector tensorflow.OutputTensor body_outputs, @ByPtrPtr tensorflow.WhileContext result)
@ByVal public tensorflow.Status AddWhileContext(@tensorflow.StringPiece String frame_name, @ByVal tensorflow.NodeVector enter_nodes, @ByVal tensorflow.NodeVector exit_nodes, @ByVal tensorflow.OutputTensor cond_output, @StdVector tensorflow.OutputTensor body_inputs, @StdVector tensorflow.OutputTensor body_outputs, @ByPtrPtr tensorflow.WhileContext result)
Copyright © 2019. All rights reserved.