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:
  • 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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getName

      public String getName()
       The name of the node. Names are globally unique.
       
      string name = 1;
      Specified by:
      getName in interface CostGraphDef.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:
      getNameBytes in interface CostGraphDef.NodeOrBuilder
      Returns:
      The bytes for name.
    • getDevice

      public 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;
      Specified by:
      getDevice in interface CostGraphDef.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:
      getDeviceBytes in interface CostGraphDef.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:
      getId in interface CostGraphDef.NodeOrBuilder
      Returns:
      The id.
    • getInputInfoList

      public List<CostGraphDef.Node.InputInfo> getInputInfoList()
      repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
      Specified by:
      getInputInfoList in interface CostGraphDef.NodeOrBuilder
    • getInputInfoOrBuilderList

      public List<? extends CostGraphDef.Node.InputInfoOrBuilder> getInputInfoOrBuilderList()
      repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
      Specified by:
      getInputInfoOrBuilderList in interface CostGraphDef.NodeOrBuilder
    • getInputInfoCount

      public int getInputInfoCount()
      repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
      Specified by:
      getInputInfoCount in interface CostGraphDef.NodeOrBuilder
    • getInputInfo

      public CostGraphDef.Node.InputInfo getInputInfo(int index)
      repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
      Specified by:
      getInputInfo in interface CostGraphDef.NodeOrBuilder
    • getInputInfoOrBuilder

      public CostGraphDef.Node.InputInfoOrBuilder getInputInfoOrBuilder(int index)
      repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
      Specified by:
      getInputInfoOrBuilder in interface CostGraphDef.NodeOrBuilder
    • getOutputInfoList

      public List<CostGraphDef.Node.OutputInfo> getOutputInfoList()
      repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
      Specified by:
      getOutputInfoList in interface CostGraphDef.NodeOrBuilder
    • getOutputInfoOrBuilderList

      public List<? extends CostGraphDef.Node.OutputInfoOrBuilder> getOutputInfoOrBuilderList()
      repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
      Specified by:
      getOutputInfoOrBuilderList in interface CostGraphDef.NodeOrBuilder
    • getOutputInfoCount

      public int getOutputInfoCount()
      repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
      Specified by:
      getOutputInfoCount in interface CostGraphDef.NodeOrBuilder
    • getOutputInfo

      public CostGraphDef.Node.OutputInfo getOutputInfo(int index)
      repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
      Specified by:
      getOutputInfo in interface CostGraphDef.NodeOrBuilder
    • getOutputInfoOrBuilder

      public CostGraphDef.Node.OutputInfoOrBuilder getOutputInfoOrBuilder(int index)
      repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
      Specified by:
      getOutputInfoOrBuilder in interface CostGraphDef.NodeOrBuilder
    • getTemporaryMemorySize

      public long getTemporaryMemorySize()
       Temporary memory used by this node.
       
      int64 temporary_memory_size = 6;
      Specified by:
      getTemporaryMemorySize in interface CostGraphDef.NodeOrBuilder
      Returns:
      The temporaryMemorySize.
    • getPersistentMemorySize

      public long getPersistentMemorySize()
       Persistent memory used by this node.
       
      int64 persistent_memory_size = 12;
      Specified by:
      getPersistentMemorySize in interface CostGraphDef.NodeOrBuilder
      Returns:
      The persistentMemorySize.
    • getHostTempMemorySize

      @Deprecated public long getHostTempMemorySize()
      Deprecated.
      tensorflow.CostGraphDef.Node.host_temp_memory_size is deprecated. See tensorflow/core/framework/cost_graph.proto;l=68
      int64 host_temp_memory_size = 10 [deprecated = true];
      Specified by:
      getHostTempMemorySize in interface CostGraphDef.NodeOrBuilder
      Returns:
      The hostTempMemorySize.
    • getDeviceTempMemorySize

      @Deprecated public long getDeviceTempMemorySize()
      Deprecated.
      tensorflow.CostGraphDef.Node.device_temp_memory_size is deprecated. See tensorflow/core/framework/cost_graph.proto;l=69
      int64 device_temp_memory_size = 11 [deprecated = true];
      Specified by:
      getDeviceTempMemorySize in interface CostGraphDef.NodeOrBuilder
      Returns:
      The deviceTempMemorySize.
    • getDevicePersistentMemorySize

      @Deprecated public long getDevicePersistentMemorySize()
      Deprecated.
      tensorflow.CostGraphDef.Node.device_persistent_memory_size is deprecated. See tensorflow/core/framework/cost_graph.proto;l=70
      int64 device_persistent_memory_size = 16 [deprecated = true];
      Specified by:
      getDevicePersistentMemorySize in interface CostGraphDef.NodeOrBuilder
      Returns:
      The devicePersistentMemorySize.
    • getComputeCost

      public long getComputeCost()
       Estimate of the computational cost of this node, in microseconds.
       
      int64 compute_cost = 9;
      Specified by:
      getComputeCost in interface CostGraphDef.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:
      getComputeTime in interface CostGraphDef.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:
      getMemoryTime in interface CostGraphDef.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:
      getIsFinal in interface CostGraphDef.NodeOrBuilder
      Returns:
      The isFinal.
    • getControlInputList

      public List<Integer> getControlInputList()
       Ids of the control inputs for this node.
       
      repeated int32 control_input = 8;
      Specified by:
      getControlInputList in interface CostGraphDef.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:
      getControlInputCount in interface CostGraphDef.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:
      getControlInput in interface CostGraphDef.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:
      getInaccurate in interface CostGraphDef.NodeOrBuilder
      Returns:
      The inaccurate.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static CostGraphDef.Node parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CostGraphDef.Node parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CostGraphDef.Node parseDelimitedFrom(InputStream input) throws IOException
      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

      public CostGraphDef.Node.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CostGraphDef.Node.Builder newBuilder()
    • newBuilder

      public static CostGraphDef.Node.Builder newBuilder(CostGraphDef.Node prototype)
    • toBuilder

      public CostGraphDef.Node.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CostGraphDef.Node.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static CostGraphDef.Node getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CostGraphDef.Node> parser()
    • getParserForType

      public com.google.protobuf.Parser<CostGraphDef.Node> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public CostGraphDef.Node getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder