Package org.tensorflow.framework
Class CostGraphDef.Node
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.CostGraphDef.Node
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,CostGraphDef.NodeOrBuilder
- Enclosing class:
CostGraphDef
public static final class CostGraphDef.Node
extends com.google.protobuf.GeneratedMessageV3
implements CostGraphDef.NodeOrBuilder
Protobuf type
tensorflow.CostGraphDef.Node- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typetensorflow.CostGraphDef.Nodestatic final classInputs of this node.static interfacestatic final classOutputs of this node.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongEstimate of the computational cost of this node, in microseconds.longAnalytical estimate of the computational cost of this node, in microseconds.intgetControlInput(int index) Ids of the control inputs for this node.intIds of the control inputs for this node.Ids of the control inputs for this node.static CostGraphDef.Nodestatic final com.google.protobuf.Descriptors.DescriptorThe device of the node.com.google.protobuf.ByteStringThe device of the node.longDeprecated.tensorflow.CostGraphDef.Node.device_persistent_memory_size is deprecated.longDeprecated.tensorflow.CostGraphDef.Node.device_temp_memory_size is deprecated.longDeprecated.tensorflow.CostGraphDef.Node.host_temp_memory_size is deprecated.intgetId()The id of the node.booleanAre the costs inaccurate?getInputInfo(int index) repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;intrepeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;getInputInfoOrBuilder(int index) repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;List<? extends CostGraphDef.Node.InputInfoOrBuilder> repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;booleanIf true, the output is permanent: it can't be discarded, because this node is part of the "final output".longAnalytical estimate of the memory access cost of this node, in microseconds.getName()The name of the node.com.google.protobuf.ByteStringThe name of the node.getOutputInfo(int index) repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;intrepeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;getOutputInfoOrBuilder(int index) repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;List<? extends CostGraphDef.Node.OutputInfoOrBuilder> repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;com.google.protobuf.Parser<CostGraphDef.Node> longPersistent memory used by this node.intlongTemporary memory used by this node.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic CostGraphDef.Node.Builderstatic CostGraphDef.Node.BuildernewBuilder(CostGraphDef.Node prototype) protected CostGraphDef.Node.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CostGraphDef.NodeparseDelimitedFrom(InputStream input) static CostGraphDef.NodeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CostGraphDef.NodeparseFrom(byte[] data) static CostGraphDef.NodeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CostGraphDef.NodeparseFrom(com.google.protobuf.ByteString data) static CostGraphDef.NodeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CostGraphDef.NodeparseFrom(com.google.protobuf.CodedInputStream input) static CostGraphDef.NodeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CostGraphDef.NodeparseFrom(InputStream input) static CostGraphDef.NodeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CostGraphDef.NodeparseFrom(ByteBuffer data) static CostGraphDef.NodeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CostGraphDef.Node> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DEVICE_FIELD_NUMBER
public static final int DEVICE_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
INPUT_INFO_FIELD_NUMBER
public static final int INPUT_INFO_FIELD_NUMBER- See Also:
-
OUTPUT_INFO_FIELD_NUMBER
public static final int OUTPUT_INFO_FIELD_NUMBER- See Also:
-
TEMPORARY_MEMORY_SIZE_FIELD_NUMBER
public static final int TEMPORARY_MEMORY_SIZE_FIELD_NUMBER- See Also:
-
PERSISTENT_MEMORY_SIZE_FIELD_NUMBER
public static final int PERSISTENT_MEMORY_SIZE_FIELD_NUMBER- See Also:
-
HOST_TEMP_MEMORY_SIZE_FIELD_NUMBER
public static final int HOST_TEMP_MEMORY_SIZE_FIELD_NUMBER- See Also:
-
DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER
public static final int DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER- See Also:
-
DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER
public static final int DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER- See Also:
-
COMPUTE_COST_FIELD_NUMBER
public static final int COMPUTE_COST_FIELD_NUMBER- See Also:
-
COMPUTE_TIME_FIELD_NUMBER
public static final int COMPUTE_TIME_FIELD_NUMBER- See Also:
-
MEMORY_TIME_FIELD_NUMBER
public static final int MEMORY_TIME_FIELD_NUMBER- See Also:
-
IS_FINAL_FIELD_NUMBER
public static final int IS_FINAL_FIELD_NUMBER- See Also:
-
CONTROL_INPUT_FIELD_NUMBER
public static final int CONTROL_INPUT_FIELD_NUMBER- See Also:
-
INACCURATE_FIELD_NUMBER
public static final int INACCURATE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
The name of the node. Names are globally unique.
string name = 1;- Specified by:
getNamein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the node. Names are globally unique.
string name = 1;- Specified by:
getNameBytesin interfaceCostGraphDef.NodeOrBuilder- Returns:
- The bytes for name.
-
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;- Specified by:
getDevicein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The device.
-
getDeviceBytes
public 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;- Specified by:
getDeviceBytesin interfaceCostGraphDef.NodeOrBuilder- Returns:
- The bytes for device.
-
getId
public int getId()The id of the node. Node ids are only unique inside a partition.
int32 id = 3;- Specified by:
getIdin interfaceCostGraphDef.NodeOrBuilder- Returns:
- The id.
-
getInputInfoList
repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;- Specified by:
getInputInfoListin interfaceCostGraphDef.NodeOrBuilder
-
getInputInfoOrBuilderList
repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;- Specified by:
getInputInfoOrBuilderListin interfaceCostGraphDef.NodeOrBuilder
-
getInputInfoCount
public int getInputInfoCount()repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;- Specified by:
getInputInfoCountin interfaceCostGraphDef.NodeOrBuilder
-
getInputInfo
repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;- Specified by:
getInputInfoin interfaceCostGraphDef.NodeOrBuilder
-
getInputInfoOrBuilder
repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;- Specified by:
getInputInfoOrBuilderin interfaceCostGraphDef.NodeOrBuilder
-
getOutputInfoList
repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;- Specified by:
getOutputInfoListin interfaceCostGraphDef.NodeOrBuilder
-
getOutputInfoOrBuilderList
repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;- Specified by:
getOutputInfoOrBuilderListin interfaceCostGraphDef.NodeOrBuilder
-
getOutputInfoCount
public int getOutputInfoCount()repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;- Specified by:
getOutputInfoCountin interfaceCostGraphDef.NodeOrBuilder
-
getOutputInfo
repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;- Specified by:
getOutputInfoin interfaceCostGraphDef.NodeOrBuilder
-
getOutputInfoOrBuilder
repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;- Specified by:
getOutputInfoOrBuilderin interfaceCostGraphDef.NodeOrBuilder
-
getTemporaryMemorySize
public long getTemporaryMemorySize()Temporary memory used by this node.
int64 temporary_memory_size = 6;- Specified by:
getTemporaryMemorySizein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The temporaryMemorySize.
-
getPersistentMemorySize
public long getPersistentMemorySize()Persistent memory used by this node.
int64 persistent_memory_size = 12;- Specified by:
getPersistentMemorySizein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The persistentMemorySize.
-
getHostTempMemorySize
Deprecated.tensorflow.CostGraphDef.Node.host_temp_memory_size is deprecated. See tensorflow/core/framework/cost_graph.proto;l=68int64 host_temp_memory_size = 10 [deprecated = true];- Specified by:
getHostTempMemorySizein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The hostTempMemorySize.
-
getDeviceTempMemorySize
Deprecated.tensorflow.CostGraphDef.Node.device_temp_memory_size is deprecated. See tensorflow/core/framework/cost_graph.proto;l=69int64 device_temp_memory_size = 11 [deprecated = true];- Specified by:
getDeviceTempMemorySizein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The deviceTempMemorySize.
-
getDevicePersistentMemorySize
Deprecated.tensorflow.CostGraphDef.Node.device_persistent_memory_size is deprecated. See tensorflow/core/framework/cost_graph.proto;l=70int64 device_persistent_memory_size = 16 [deprecated = true];- Specified by:
getDevicePersistentMemorySizein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The devicePersistentMemorySize.
-
getComputeCost
public long getComputeCost()Estimate of the computational cost of this node, in microseconds.
int64 compute_cost = 9;- Specified by:
getComputeCostin interfaceCostGraphDef.NodeOrBuilder- Returns:
- The computeCost.
-
getComputeTime
public long getComputeTime()Analytical estimate of the computational cost of this node, in microseconds.
int64 compute_time = 14;- Specified by:
getComputeTimein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The computeTime.
-
getMemoryTime
public long getMemoryTime()Analytical estimate of the memory access cost of this node, in microseconds.
int64 memory_time = 15;- Specified by:
getMemoryTimein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The memoryTime.
-
getIsFinal
public 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;- Specified by:
getIsFinalin interfaceCostGraphDef.NodeOrBuilder- Returns:
- The isFinal.
-
getControlInputList
Ids of the control inputs for this node.
repeated int32 control_input = 8;- Specified by:
getControlInputListin interfaceCostGraphDef.NodeOrBuilder- Returns:
- A list containing the controlInput.
-
getControlInputCount
public int getControlInputCount()Ids of the control inputs for this node.
repeated int32 control_input = 8;- Specified by:
getControlInputCountin interfaceCostGraphDef.NodeOrBuilder- Returns:
- The count of controlInput.
-
getControlInput
public int getControlInput(int index) Ids of the control inputs for this node.
repeated int32 control_input = 8;- Specified by:
getControlInputin interfaceCostGraphDef.NodeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The controlInput at the given index.
-
getInaccurate
public boolean getInaccurate()Are the costs inaccurate?
bool inaccurate = 17;- Specified by:
getInaccuratein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The inaccurate.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CostGraphDef.Node parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CostGraphDef.Node parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CostGraphDef.Node parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CostGraphDef.Node parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CostGraphDef.Node parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CostGraphDef.Node parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CostGraphDef.Node parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CostGraphDef.Node parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CostGraphDef.Node parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CostGraphDef.Node parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CostGraphDef.Node.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-