Class CostGraphDef.Node
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.CostGraphDef.Node
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, CostGraphDef.NodeOrBuilder
- Enclosing class:
CostGraphDef
public static final class CostGraphDef.Node
extends 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 GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
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 GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class 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 Descriptors.DescriptorThe device of the node.The 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.The 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;longPersistent memory used by this node.intlongTemporary memory used by this node.final UnknownFieldSetinthashCode()protected GeneratedMessageV3.FieldAccessorTablefinal booleanstatic CostGraphDef.Node.Builderstatic CostGraphDef.Node.BuildernewBuilder(CostGraphDef.Node prototype) protected CostGraphDef.Node.Builderprotected Objectstatic CostGraphDef.NodeparseDelimitedFrom(InputStream input) static CostGraphDef.NodeparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static CostGraphDef.NodeparseFrom(byte[] data) static CostGraphDef.NodeparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static CostGraphDef.NodeparseFrom(ByteString data) static CostGraphDef.NodeparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static CostGraphDef.NodeparseFrom(CodedInputStream input) static CostGraphDef.NodeparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static CostGraphDef.NodeparseFrom(InputStream input) static CostGraphDef.NodeparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static CostGraphDef.NodeparseFrom(ByteBuffer data) static CostGraphDef.NodeparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<CostGraphDef.Node> parser()voidwriteTo(CodedOutputStream output) Methods inherited from class GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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 AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, 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 classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getName
The name of the node. Names are globally unique.
string name = 1;- Specified by:
getNamein interfaceCostGraphDef.NodeOrBuilder- Returns:
- The name.
-
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
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=52int64 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=53int64 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=54int64 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 interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static CostGraphDef.Node parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static CostGraphDef.Node parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static CostGraphDef.Node parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CostGraphDef.Node parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CostGraphDef.Node parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CostGraphDef.Node parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-