Class Model.ModelProto.Node
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.data.model.Model.ModelProto.Node
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, Model.ModelProto.NodeOrBuilder
- Enclosing class:
Model.ModelProto
public static final class Model.ModelProto.Node
extends GeneratedMessageV3
implements Model.ModelProto.NodeOrBuilder
General representation of a node in the model.Protobuf type
tensorflow.data.model.ModelProto.Node- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classGeneral representation of a node in the model.static final classRepresents a node parameter.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 intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanAn indication whether autotuning is enabled for this node.longThe number of bytes stored in this node's buffer.longThe number of elements stored in this node's buffer.longThe number of bytes consumed by the node.longThe number of bytes produced by the node.static Model.ModelProto.Nodestatic final Descriptors.DescriptorlonggetId()Unique node ID.longint64 input_processing_time_count = 13;doubleStatistic of inputs processing time history.longgetInputs(int index) IDs of inputs of this node.intIDs of inputs of this node.IDs of inputs of this node.doubleRatio identifies how many parallelism calls are introduced by one buffered element.getName()Human-readable name of the node.Human-readable name of the node.Class of this node.intClass of this node.longThe number of elements produced by the node.getParameters(int index) Parameters of this node.intParameters of this node.Parameters of this node.getParametersOrBuilder(int index) Parameters of this node.List<? extends Model.ModelProto.Node.ParameterOrBuilder> Parameters of this node.longThe aggregate processing time spent in this node in nanoseconds.doublegetRatio()Ratio of input to output elements.booleanAn indication whether this node records metrics about produced and consumed elements.intfinal UnknownFieldSetinthashCode()protected GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Model.ModelProto.Node prototype) protected Model.ModelProto.Node.Builderprotected Objectstatic Model.ModelProto.NodeparseDelimitedFrom(InputStream input) static Model.ModelProto.NodeparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static Model.ModelProto.NodeparseFrom(byte[] data) static Model.ModelProto.NodeparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static Model.ModelProto.NodeparseFrom(ByteString data) static Model.ModelProto.NodeparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static Model.ModelProto.NodeparseFrom(CodedInputStream input) static Model.ModelProto.NodeparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static Model.ModelProto.NodeparseFrom(InputStream input) static Model.ModelProto.NodeparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static Model.ModelProto.NodeparseFrom(ByteBuffer data) static Model.ModelProto.NodeparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<Model.ModelProto.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
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
AUTOTUNE_FIELD_NUMBER
public static final int AUTOTUNE_FIELD_NUMBER- See Also:
-
BUFFERED_BYTES_FIELD_NUMBER
public static final int BUFFERED_BYTES_FIELD_NUMBER- See Also:
-
BUFFERED_ELEMENTS_FIELD_NUMBER
public static final int BUFFERED_ELEMENTS_FIELD_NUMBER- See Also:
-
BYTES_CONSUMED_FIELD_NUMBER
public static final int BYTES_CONSUMED_FIELD_NUMBER- See Also:
-
BYTES_PRODUCED_FIELD_NUMBER
public static final int BYTES_PRODUCED_FIELD_NUMBER- See Also:
-
NUM_ELEMENTS_FIELD_NUMBER
public static final int NUM_ELEMENTS_FIELD_NUMBER- See Also:
-
PROCESSING_TIME_FIELD_NUMBER
public static final int PROCESSING_TIME_FIELD_NUMBER- See Also:
-
RECORD_METRICS_FIELD_NUMBER
public static final int RECORD_METRICS_FIELD_NUMBER- See Also:
-
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER- See Also:
-
INPUT_PROCESSING_TIME_SUM_FIELD_NUMBER
public static final int INPUT_PROCESSING_TIME_SUM_FIELD_NUMBER- See Also:
-
INPUT_PROCESSING_TIME_COUNT_FIELD_NUMBER
public static final int INPUT_PROCESSING_TIME_COUNT_FIELD_NUMBER- See Also:
-
INPUTS_FIELD_NUMBER
public static final int INPUTS_FIELD_NUMBER- See Also:
-
NODE_CLASS_FIELD_NUMBER
public static final int NODE_CLASS_FIELD_NUMBER- See Also:
-
RATIO_FIELD_NUMBER
public static final int RATIO_FIELD_NUMBER- See Also:
-
MEMORY_RATIO_FIELD_NUMBER
public static final int MEMORY_RATIO_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getId
public long getId()Unique node ID.
int64 id = 1;- Specified by:
getIdin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The id.
-
getName
Human-readable name of the node.
string name = 2;- Specified by:
getNamein interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The name.
-
getNameBytes
Human-readable name of the node.
string name = 2;- Specified by:
getNameBytesin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The bytes for name.
-
getAutotune
public boolean getAutotune()An indication whether autotuning is enabled for this node.
bool autotune = 3;- Specified by:
getAutotunein interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The autotune.
-
getBufferedBytes
public long getBufferedBytes()The number of bytes stored in this node's buffer.
int64 buffered_bytes = 4;- Specified by:
getBufferedBytesin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The bufferedBytes.
-
getBufferedElements
public long getBufferedElements()The number of elements stored in this node's buffer.
int64 buffered_elements = 5;- Specified by:
getBufferedElementsin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The bufferedElements.
-
getBytesConsumed
public long getBytesConsumed()The number of bytes consumed by the node.
int64 bytes_consumed = 6;- Specified by:
getBytesConsumedin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The bytesConsumed.
-
getBytesProduced
public long getBytesProduced()The number of bytes produced by the node.
int64 bytes_produced = 7;- Specified by:
getBytesProducedin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The bytesProduced.
-
getNumElements
public long getNumElements()The number of elements produced by the node.
int64 num_elements = 8;- Specified by:
getNumElementsin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The numElements.
-
getProcessingTime
public long getProcessingTime()The aggregate processing time spent in this node in nanoseconds.
int64 processing_time = 9;- Specified by:
getProcessingTimein interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The processingTime.
-
getRecordMetrics
public boolean getRecordMetrics()An indication whether this node records metrics about produced and consumed elements.
bool record_metrics = 10;- Specified by:
getRecordMetricsin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The recordMetrics.
-
getParametersList
Parameters of this node.
repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;- Specified by:
getParametersListin interfaceModel.ModelProto.NodeOrBuilder
-
getParametersOrBuilderList
Parameters of this node.
repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;- Specified by:
getParametersOrBuilderListin interfaceModel.ModelProto.NodeOrBuilder
-
getParametersCount
public int getParametersCount()Parameters of this node.
repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;- Specified by:
getParametersCountin interfaceModel.ModelProto.NodeOrBuilder
-
getParameters
Parameters of this node.
repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;- Specified by:
getParametersin interfaceModel.ModelProto.NodeOrBuilder
-
getParametersOrBuilder
Parameters of this node.
repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11;- Specified by:
getParametersOrBuilderin interfaceModel.ModelProto.NodeOrBuilder
-
getInputProcessingTimeSum
public double getInputProcessingTimeSum()Statistic of inputs processing time history.
double input_processing_time_sum = 12;- Specified by:
getInputProcessingTimeSumin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The inputProcessingTimeSum.
-
getInputProcessingTimeCount
public long getInputProcessingTimeCount()int64 input_processing_time_count = 13;- Specified by:
getInputProcessingTimeCountin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The inputProcessingTimeCount.
-
getInputsList
IDs of inputs of this node.
repeated int64 inputs = 14;- Specified by:
getInputsListin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- A list containing the inputs.
-
getInputsCount
public int getInputsCount()IDs of inputs of this node.
repeated int64 inputs = 14;- Specified by:
getInputsCountin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The count of inputs.
-
getInputs
public long getInputs(int index) IDs of inputs of this node.
repeated int64 inputs = 14;- Specified by:
getInputsin interfaceModel.ModelProto.NodeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The inputs at the given index.
-
getNodeClassValue
public int getNodeClassValue()Class of this node.
.tensorflow.data.model.NodeClass node_class = 15;- Specified by:
getNodeClassValuein interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The enum numeric value on the wire for nodeClass.
-
getNodeClass
Class of this node.
.tensorflow.data.model.NodeClass node_class = 15;- Specified by:
getNodeClassin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The nodeClass.
-
getRatio
public double getRatio()Ratio of input to output elements. This is only used by KNOWN_RATIO and ASYNC_KNOWN_RATIO nodes.
double ratio = 16;- Specified by:
getRatioin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The ratio.
-
getMemoryRatio
public double getMemoryRatio()Ratio identifies how many parallelism calls are introduced by one buffered element. This is only used by ASYNC_KNOWN_RATIO nodes.
double memory_ratio = 17;- Specified by:
getMemoryRatioin interfaceModel.ModelProto.NodeOrBuilder- Returns:
- The memoryRatio.
-
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
public static Model.ModelProto.Node parseFrom(ByteBuffer data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static Model.ModelProto.Node parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static Model.ModelProto.Node parseFrom(ByteString data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static Model.ModelProto.Node parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static Model.ModelProto.Node parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Model.ModelProto.Node parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Model.ModelProto.Node parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Model.ModelProto.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
-