Package org.tensorflow.framework
Interface CostGraphDef.NodeOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CostGraphDef.Node,CostGraphDef.Node.Builder
- Enclosing class:
- CostGraphDef
public static interface CostGraphDef.NodeOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description longgetComputeCost()Estimate of the computational cost of this node, in microseconds.longgetComputeTime()Analytical estimate of the computational cost of this node, in microseconds.intgetControlInput(int index)Ids of the control inputs for this node.intgetControlInputCount()Ids of the control inputs for this node.java.util.List<java.lang.Integer>getControlInputList()Ids of the control inputs for this node.java.lang.StringgetDevice()The device of the node.com.google.protobuf.ByteStringgetDeviceBytes()The device of the node.longgetDevicePersistentMemorySize()Deprecated.longgetDeviceTempMemorySize()Deprecated.longgetHostTempMemorySize()Deprecated.intgetId()The id of the node.booleangetInaccurate()Are the costs inaccurate?CostGraphDef.Node.InputInfogetInputInfo(int index)repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;intgetInputInfoCount()repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;java.util.List<CostGraphDef.Node.InputInfo>getInputInfoList()repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;CostGraphDef.Node.InputInfoOrBuildergetInputInfoOrBuilder(int index)repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;java.util.List<? extends CostGraphDef.Node.InputInfoOrBuilder>getInputInfoOrBuilderList()repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;booleangetIsFinal()If true, the output is permanent: it can't be discarded, because this node is part of the "final output".longgetMemoryTime()Analytical estimate of the memory access cost of this node, in microseconds.java.lang.StringgetName()The name of the node.com.google.protobuf.ByteStringgetNameBytes()The name of the node.CostGraphDef.Node.OutputInfogetOutputInfo(int index)repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;intgetOutputInfoCount()repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;java.util.List<CostGraphDef.Node.OutputInfo>getOutputInfoList()repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;CostGraphDef.Node.OutputInfoOrBuildergetOutputInfoOrBuilder(int index)repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;java.util.List<? extends CostGraphDef.Node.OutputInfoOrBuilder>getOutputInfoOrBuilderList()repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;longgetPersistentMemorySize()Persistent memory used by this node.longgetTemporaryMemorySize()Temporary memory used by this node.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
The name of the node. Names are globally unique.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The name of the node. Names are globally unique.
string name = 1;- Returns:
- The bytes for name.
-
getDevice
java.lang.String getDevice()
The device of the node. Can be empty if the node is mapped to the default partition or partitioning hasn't been run yet.
string device = 2;- Returns:
- The device.
-
getDeviceBytes
com.google.protobuf.ByteString getDeviceBytes()
The device of the node. Can be empty if the node is mapped to the default partition or partitioning hasn't been run yet.
string device = 2;- Returns:
- The bytes for device.
-
getId
int getId()
The id of the node. Node ids are only unique inside a partition.
int32 id = 3;- Returns:
- The id.
-
getInputInfoList
java.util.List<CostGraphDef.Node.InputInfo> getInputInfoList()
repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
-
getInputInfo
CostGraphDef.Node.InputInfo getInputInfo(int index)
repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
-
getInputInfoCount
int getInputInfoCount()
repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
-
getInputInfoOrBuilderList
java.util.List<? extends CostGraphDef.Node.InputInfoOrBuilder> getInputInfoOrBuilderList()
repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
-
getInputInfoOrBuilder
CostGraphDef.Node.InputInfoOrBuilder getInputInfoOrBuilder(int index)
repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
-
getOutputInfoList
java.util.List<CostGraphDef.Node.OutputInfo> getOutputInfoList()
repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
-
getOutputInfo
CostGraphDef.Node.OutputInfo getOutputInfo(int index)
repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
-
getOutputInfoCount
int getOutputInfoCount()
repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
-
getOutputInfoOrBuilderList
java.util.List<? extends CostGraphDef.Node.OutputInfoOrBuilder> getOutputInfoOrBuilderList()
repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
-
getOutputInfoOrBuilder
CostGraphDef.Node.OutputInfoOrBuilder getOutputInfoOrBuilder(int index)
repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
-
getTemporaryMemorySize
long getTemporaryMemorySize()
Temporary memory used by this node.
int64 temporary_memory_size = 6;- Returns:
- The temporaryMemorySize.
-
getPersistentMemorySize
long getPersistentMemorySize()
Persistent memory used by this node.
int64 persistent_memory_size = 12;- Returns:
- The persistentMemorySize.
-
getHostTempMemorySize
@Deprecated long getHostTempMemorySize()
Deprecated.int64 host_temp_memory_size = 10 [deprecated = true];- Returns:
- The hostTempMemorySize.
-
getDeviceTempMemorySize
@Deprecated long getDeviceTempMemorySize()
Deprecated.int64 device_temp_memory_size = 11 [deprecated = true];- Returns:
- The deviceTempMemorySize.
-
getDevicePersistentMemorySize
@Deprecated long getDevicePersistentMemorySize()
Deprecated.int64 device_persistent_memory_size = 16 [deprecated = true];- Returns:
- The devicePersistentMemorySize.
-
getComputeCost
long getComputeCost()
Estimate of the computational cost of this node, in microseconds.
int64 compute_cost = 9;- Returns:
- The computeCost.
-
getComputeTime
long getComputeTime()
Analytical estimate of the computational cost of this node, in microseconds.
int64 compute_time = 14;- Returns:
- The computeTime.
-
getMemoryTime
long getMemoryTime()
Analytical estimate of the memory access cost of this node, in microseconds.
int64 memory_time = 15;- Returns:
- The memoryTime.
-
getIsFinal
boolean getIsFinal()
If true, the output is permanent: it can't be discarded, because this node is part of the "final output". Nodes may depend on final nodes.
bool is_final = 7;- Returns:
- The isFinal.
-
getControlInputList
java.util.List<java.lang.Integer> getControlInputList()
Ids of the control inputs for this node.
repeated int32 control_input = 8;- Returns:
- A list containing the controlInput.
-
getControlInputCount
int getControlInputCount()
Ids of the control inputs for this node.
repeated int32 control_input = 8;- Returns:
- The count of controlInput.
-
getControlInput
int getControlInput(int index)
Ids of the control inputs for this node.
repeated int32 control_input = 8;- Parameters:
index- The index of the element to return.- Returns:
- The controlInput at the given index.
-
getInaccurate
boolean getInaccurate()
Are the costs inaccurate?
bool inaccurate = 17;- Returns:
- The inaccurate.
-
-