Class CostGraphDef.Node

  • All Implemented Interfaces:
    Serializable, org.nd4j.shade.protobuf.Message, org.nd4j.shade.protobuf.MessageLite, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, CostGraphDef.NodeOrBuilder
    Enclosing class:
    CostGraphDef

    public static final class CostGraphDef.Node
    extends org.nd4j.shade.protobuf.GeneratedMessageV3
    implements CostGraphDef.NodeOrBuilder
    Protobuf type tensorflow.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
    • Method Detail

      • newInstance

        protected Object newInstance​(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getNameBytes

        public org.nd4j.shade.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 org.nd4j.shade.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.
        tensorflow.CostGraphDef.Node.host_temp_memory_size is deprecated. See tensorflow/core/framework/cost_graph.proto;l=50
        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=51
        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=52
        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.
      • 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 org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(org.nd4j.shade.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        writeTo in class org.nd4j.shade.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        getSerializedSize in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface org.nd4j.shade.protobuf.Message
        Overrides:
        equals in class org.nd4j.shade.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface org.nd4j.shade.protobuf.Message
        Overrides:
        hashCode in class org.nd4j.shade.protobuf.AbstractMessage
      • parseFrom

        public static CostGraphDef.Node parseFrom​(ByteBuffer data)
                                           throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CostGraphDef.Node parseFrom​(ByteBuffer data,
                                                  org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CostGraphDef.Node parseFrom​(org.nd4j.shade.protobuf.ByteString data)
                                           throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CostGraphDef.Node parseFrom​(org.nd4j.shade.protobuf.ByteString data,
                                                  org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CostGraphDef.Node parseFrom​(byte[] data)
                                           throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CostGraphDef.Node parseFrom​(byte[] data,
                                                  org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CostGraphDef.Node parseFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                                  org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Throws:
        IOException
      • newBuilderForType

        public CostGraphDef.Node.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface org.nd4j.shade.protobuf.Message
        Specified by:
        newBuilderForType in interface org.nd4j.shade.protobuf.MessageLite
      • toBuilder

        public CostGraphDef.Node.Builder toBuilder()
        Specified by:
        toBuilder in interface org.nd4j.shade.protobuf.Message
        Specified by:
        toBuilder in interface org.nd4j.shade.protobuf.MessageLite
      • newBuilderForType

        protected CostGraphDef.Node.Builder newBuilderForType​(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getParserForType

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

        public CostGraphDef.Node getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder