Class CostGraphDef.Node

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable, CostGraphDef.NodeOrBuilder
    Enclosing class:
    CostGraphDef

    public static final class CostGraphDef.Node
    extends com.google.protobuf.GeneratedMessageV3
    implements CostGraphDef.NodeOrBuilder
    Protobuf type org.platanios.tensorflow.proto.CostGraphDef.Node
    See Also:
    Serialized Form
    • Field Detail

      • INPUT_INFO_FIELD_NUMBER

        public static final int INPUT_INFO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OUTPUT_INFO_FIELD_NUMBER

        public static final int OUTPUT_INFO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TEMPORARY_MEMORY_SIZE_FIELD_NUMBER

        public static final int TEMPORARY_MEMORY_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PERSISTENT_MEMORY_SIZE_FIELD_NUMBER

        public static final int PERSISTENT_MEMORY_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HOST_TEMP_MEMORY_SIZE_FIELD_NUMBER

        public static final int HOST_TEMP_MEMORY_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER

        public static final int DEVICE_TEMP_MEMORY_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER

        public static final int DEVICE_PERSISTENT_MEMORY_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COMPUTE_COST_FIELD_NUMBER

        public static final int COMPUTE_COST_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COMPUTE_TIME_FIELD_NUMBER

        public static final int COMPUTE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MEMORY_TIME_FIELD_NUMBER

        public static final int MEMORY_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONTROL_INPUT_FIELD_NUMBER

        public static final int CONTROL_INPUT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INACCURATE_FIELD_NUMBER

        public static final int INACCURATE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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 java.lang.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 java.lang.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.
      • 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.
        int64 host_temp_memory_size = 10 [deprecated = true];
        Specified by:
        getHostTempMemorySize in interface CostGraphDef.NodeOrBuilder
        Returns:
        The hostTempMemorySize.
      • getDeviceTempMemorySize

        @Deprecated
        public long getDeviceTempMemorySize()
        Deprecated.
        int64 device_temp_memory_size = 11 [deprecated = true];
        Specified by:
        getDeviceTempMemorySize in interface CostGraphDef.NodeOrBuilder
        Returns:
        The deviceTempMemorySize.
      • getDevicePersistentMemorySize

        @Deprecated
        public long getDevicePersistentMemorySize()
        Deprecated.
        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 java.util.List<java.lang.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.
      • 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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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​(java.nio.ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CostGraphDef.Node parseFrom​(java.nio.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​(java.io.InputStream input)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

        public static CostGraphDef.Node parseDelimitedFrom​(java.io.InputStream input)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

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

        public static CostGraphDef.Node parseFrom​(com.google.protobuf.CodedInputStream input)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static CostGraphDef.Node parseFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Throws:
        java.io.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
      • 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
      • 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