Interface Model.ModelProto.NodeOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
Model.ModelProto.Node, Model.ModelProto.Node.Builder
- Enclosing class:
Model.ModelProto
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAn 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.longgetId()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.Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
getId
long getId()Unique node ID.
int64 id = 1;- Returns:
- The id.
-
getName
-
getNameBytes
ByteString getNameBytes()Human-readable name of the node.
string name = 2;- Returns:
- The bytes for name.
-
getAutotune
boolean getAutotune()An indication whether autotuning is enabled for this node.
bool autotune = 3;- Returns:
- The autotune.
-
getBufferedBytes
long getBufferedBytes()The number of bytes stored in this node's buffer.
int64 buffered_bytes = 4;- Returns:
- The bufferedBytes.
-
getBufferedElements
long getBufferedElements()The number of elements stored in this node's buffer.
int64 buffered_elements = 5;- Returns:
- The bufferedElements.
-
getBytesConsumed
long getBytesConsumed()The number of bytes consumed by the node.
int64 bytes_consumed = 6;- Returns:
- The bytesConsumed.
-
getBytesProduced
long getBytesProduced()The number of bytes produced by the node.
int64 bytes_produced = 7;- Returns:
- The bytesProduced.
-
getNumElements
long getNumElements()The number of elements produced by the node.
int64 num_elements = 8;- Returns:
- The numElements.
-
getProcessingTime
long getProcessingTime()The aggregate processing time spent in this node in nanoseconds.
int64 processing_time = 9;- Returns:
- The processingTime.
-
getRecordMetrics
boolean getRecordMetrics()An indication whether this node records metrics about produced and consumed elements.
bool record_metrics = 10;- Returns:
- The recordMetrics.
-
getParametersList
List<Model.ModelProto.Node.Parameter> getParametersList()Parameters of this node.
repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; -
getParameters
Parameters of this node.
repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; -
getParametersCount
int getParametersCount()Parameters of this node.
repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; -
getParametersOrBuilderList
List<? extends Model.ModelProto.Node.ParameterOrBuilder> getParametersOrBuilderList()Parameters of this node.
repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; -
getParametersOrBuilder
Parameters of this node.
repeated .tensorflow.data.model.ModelProto.Node.Parameter parameters = 11; -
getInputProcessingTimeSum
double getInputProcessingTimeSum()Statistic of inputs processing time history.
double input_processing_time_sum = 12;- Returns:
- The inputProcessingTimeSum.
-
getInputProcessingTimeCount
long getInputProcessingTimeCount()int64 input_processing_time_count = 13;- Returns:
- The inputProcessingTimeCount.
-
getInputsList
-
getInputsCount
int getInputsCount()IDs of inputs of this node.
repeated int64 inputs = 14;- Returns:
- The count of inputs.
-
getInputs
long getInputs(int index) IDs of inputs of this node.
repeated int64 inputs = 14;- Parameters:
index- The index of the element to return.- Returns:
- The inputs at the given index.
-
getNodeClassValue
int getNodeClassValue()Class of this node.
.tensorflow.data.model.NodeClass node_class = 15;- Returns:
- The enum numeric value on the wire for nodeClass.
-
getNodeClass
Model.NodeClass getNodeClass()Class of this node.
.tensorflow.data.model.NodeClass node_class = 15;- Returns:
- The nodeClass.
-
getRatio
double getRatio()Ratio of input to output elements. This is only used by KNOWN_RATIO and ASYNC_KNOWN_RATIO nodes.
double ratio = 16;- Returns:
- The ratio.
-
getMemoryRatio
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;- Returns:
- The memoryRatio.
-