Class DebugOptions.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, DebugOptionsOrBuilder
    Enclosing class:
    DebugOptions

    public static final class DebugOptions.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
    implements DebugOptionsOrBuilder
     Options for initializing DebuggerState in TensorFlow Debugger (tfdbg).
     
    Protobuf type org.platanios.tensorflow.proto.DebugOptions
    • Method Detail

      • 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.Builder<DebugOptions.Builder>
      • clear

        public DebugOptions.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
      • getDefaultInstanceForType

        public DebugOptions getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public DebugOptions build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public DebugOptions buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public DebugOptions.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
      • setField

        public DebugOptions.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
      • clearField

        public DebugOptions.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
      • clearOneof

        public DebugOptions.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
      • setRepeatedField

        public DebugOptions.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
      • addRepeatedField

        public DebugOptions.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
      • mergeFrom

        public DebugOptions.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DebugOptions.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
      • mergeFrom

        public DebugOptions.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DebugOptions.Builder>
        Throws:
        java.io.IOException
      • getDebugTensorWatchOptsCount

        public int getDebugTensorWatchOptsCount()
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
        Specified by:
        getDebugTensorWatchOptsCount in interface DebugOptionsOrBuilder
      • setDebugTensorWatchOpts

        public DebugOptions.Builder setDebugTensorWatchOpts​(int index,
                                                            DebugTensorWatch value)
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • setDebugTensorWatchOpts

        public DebugOptions.Builder setDebugTensorWatchOpts​(int index,
                                                            DebugTensorWatch.Builder builderForValue)
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • addDebugTensorWatchOpts

        public DebugOptions.Builder addDebugTensorWatchOpts​(DebugTensorWatch value)
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • addDebugTensorWatchOpts

        public DebugOptions.Builder addDebugTensorWatchOpts​(int index,
                                                            DebugTensorWatch value)
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • addDebugTensorWatchOpts

        public DebugOptions.Builder addDebugTensorWatchOpts​(DebugTensorWatch.Builder builderForValue)
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • addDebugTensorWatchOpts

        public DebugOptions.Builder addDebugTensorWatchOpts​(int index,
                                                            DebugTensorWatch.Builder builderForValue)
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • addAllDebugTensorWatchOpts

        public DebugOptions.Builder addAllDebugTensorWatchOpts​(java.lang.Iterable<? extends DebugTensorWatch> values)
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • clearDebugTensorWatchOpts

        public DebugOptions.Builder clearDebugTensorWatchOpts()
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • removeDebugTensorWatchOpts

        public DebugOptions.Builder removeDebugTensorWatchOpts​(int index)
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • getDebugTensorWatchOptsBuilder

        public DebugTensorWatch.Builder getDebugTensorWatchOptsBuilder​(int index)
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • addDebugTensorWatchOptsBuilder

        public DebugTensorWatch.Builder addDebugTensorWatchOptsBuilder()
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • addDebugTensorWatchOptsBuilder

        public DebugTensorWatch.Builder addDebugTensorWatchOptsBuilder​(int index)
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • getDebugTensorWatchOptsBuilderList

        public java.util.List<DebugTensorWatch.Builder> getDebugTensorWatchOptsBuilderList()
         Debugging options
         
        repeated .org.platanios.tensorflow.proto.DebugTensorWatch debug_tensor_watch_opts = 4;
      • getGlobalStep

        public long getGlobalStep()
         Caller-specified global step count.
         Note that this is distinct from the session run count and the executor
         step count.
         
        int64 global_step = 10;
        Specified by:
        getGlobalStep in interface DebugOptionsOrBuilder
        Returns:
        The globalStep.
      • setGlobalStep

        public DebugOptions.Builder setGlobalStep​(long value)
         Caller-specified global step count.
         Note that this is distinct from the session run count and the executor
         step count.
         
        int64 global_step = 10;
        Parameters:
        value - The globalStep to set.
        Returns:
        This builder for chaining.
      • clearGlobalStep

        public DebugOptions.Builder clearGlobalStep()
         Caller-specified global step count.
         Note that this is distinct from the session run count and the executor
         step count.
         
        int64 global_step = 10;
        Returns:
        This builder for chaining.
      • getResetDiskByteUsage

        public boolean getResetDiskByteUsage()
         Whether the total disk usage of tfdbg is to be reset to zero
         in this Session.run call. This is used by wrappers and hooks
         such as the local CLI ones to indicate that the dumped tensors
         are cleaned up from the disk after each Session.run.
         
        bool reset_disk_byte_usage = 11;
        Specified by:
        getResetDiskByteUsage in interface DebugOptionsOrBuilder
        Returns:
        The resetDiskByteUsage.
      • setResetDiskByteUsage

        public DebugOptions.Builder setResetDiskByteUsage​(boolean value)
         Whether the total disk usage of tfdbg is to be reset to zero
         in this Session.run call. This is used by wrappers and hooks
         such as the local CLI ones to indicate that the dumped tensors
         are cleaned up from the disk after each Session.run.
         
        bool reset_disk_byte_usage = 11;
        Parameters:
        value - The resetDiskByteUsage to set.
        Returns:
        This builder for chaining.
      • clearResetDiskByteUsage

        public DebugOptions.Builder clearResetDiskByteUsage()
         Whether the total disk usage of tfdbg is to be reset to zero
         in this Session.run call. This is used by wrappers and hooks
         such as the local CLI ones to indicate that the dumped tensors
         are cleaned up from the disk after each Session.run.
         
        bool reset_disk_byte_usage = 11;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final DebugOptions.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
      • mergeUnknownFields

        public final DebugOptions.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>