Package org.tensorflow.framework
Class DebugOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
- org.tensorflow.framework.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 typetensorflow.DebugOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DebugOptions.BuilderaddAllDebugTensorWatchOpts(java.lang.Iterable<? extends DebugTensorWatch> values)Debugging optionsDebugOptions.BuilderaddDebugTensorWatchOpts(int index, DebugTensorWatch value)Debugging optionsDebugOptions.BuilderaddDebugTensorWatchOpts(int index, DebugTensorWatch.Builder builderForValue)Debugging optionsDebugOptions.BuilderaddDebugTensorWatchOpts(DebugTensorWatch value)Debugging optionsDebugOptions.BuilderaddDebugTensorWatchOpts(DebugTensorWatch.Builder builderForValue)Debugging optionsDebugTensorWatch.BuilderaddDebugTensorWatchOptsBuilder()Debugging optionsDebugTensorWatch.BuilderaddDebugTensorWatchOptsBuilder(int index)Debugging optionsDebugOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)DebugOptionsbuild()DebugOptionsbuildPartial()DebugOptions.Builderclear()DebugOptions.BuilderclearDebugTensorWatchOpts()Debugging optionsDebugOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DebugOptions.BuilderclearGlobalStep()Caller-specified global step count.DebugOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DebugOptions.BuilderclearResetDiskByteUsage()Whether the total disk usage of tfdbg is to be reset to zero in this Session.run call.DebugOptions.Builderclone()DebugTensorWatchgetDebugTensorWatchOpts(int index)Debugging optionsDebugTensorWatch.BuildergetDebugTensorWatchOptsBuilder(int index)Debugging optionsjava.util.List<DebugTensorWatch.Builder>getDebugTensorWatchOptsBuilderList()Debugging optionsintgetDebugTensorWatchOptsCount()Debugging optionsjava.util.List<DebugTensorWatch>getDebugTensorWatchOptsList()Debugging optionsDebugTensorWatchOrBuildergetDebugTensorWatchOptsOrBuilder(int index)Debugging optionsjava.util.List<? extends DebugTensorWatchOrBuilder>getDebugTensorWatchOptsOrBuilderList()Debugging optionsDebugOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetGlobalStep()Caller-specified global step count.booleangetResetDiskByteUsage()Whether the total disk usage of tfdbg is to be reset to zero in this Session.run call.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DebugOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DebugOptions.BuildermergeFrom(com.google.protobuf.Message other)DebugOptions.BuildermergeFrom(DebugOptions other)DebugOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DebugOptions.BuilderremoveDebugTensorWatchOpts(int index)Debugging optionsDebugOptions.BuildersetDebugTensorWatchOpts(int index, DebugTensorWatch value)Debugging optionsDebugOptions.BuildersetDebugTensorWatchOpts(int index, DebugTensorWatch.Builder builderForValue)Debugging optionsDebugOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)DebugOptions.BuildersetGlobalStep(long value)Caller-specified global step count.DebugOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)DebugOptions.BuildersetResetDiskByteUsage(boolean value)Whether the total disk usage of tfdbg is to be reset to zero in this Session.run call.DebugOptions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
clear
public DebugOptions.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
getDefaultInstanceForType
public DebugOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DebugOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DebugOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DebugOptions.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
setField
public DebugOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
clearField
public DebugOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
clearOneof
public DebugOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
addRepeatedField
public DebugOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
mergeFrom
public DebugOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DebugOptions.Builder>
-
mergeFrom
public DebugOptions.Builder mergeFrom(DebugOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DebugOptions.Builder>- Throws:
java.io.IOException
-
getDebugTensorWatchOptsList
public java.util.List<DebugTensorWatch> getDebugTensorWatchOptsList()
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;- Specified by:
getDebugTensorWatchOptsListin interfaceDebugOptionsOrBuilder
-
getDebugTensorWatchOptsCount
public int getDebugTensorWatchOptsCount()
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;- Specified by:
getDebugTensorWatchOptsCountin interfaceDebugOptionsOrBuilder
-
getDebugTensorWatchOpts
public DebugTensorWatch getDebugTensorWatchOpts(int index)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;- Specified by:
getDebugTensorWatchOptsin interfaceDebugOptionsOrBuilder
-
setDebugTensorWatchOpts
public DebugOptions.Builder setDebugTensorWatchOpts(int index, DebugTensorWatch value)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
setDebugTensorWatchOpts
public DebugOptions.Builder setDebugTensorWatchOpts(int index, DebugTensorWatch.Builder builderForValue)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
addDebugTensorWatchOpts
public DebugOptions.Builder addDebugTensorWatchOpts(DebugTensorWatch value)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
addDebugTensorWatchOpts
public DebugOptions.Builder addDebugTensorWatchOpts(int index, DebugTensorWatch value)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
addDebugTensorWatchOpts
public DebugOptions.Builder addDebugTensorWatchOpts(DebugTensorWatch.Builder builderForValue)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
addDebugTensorWatchOpts
public DebugOptions.Builder addDebugTensorWatchOpts(int index, DebugTensorWatch.Builder builderForValue)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
addAllDebugTensorWatchOpts
public DebugOptions.Builder addAllDebugTensorWatchOpts(java.lang.Iterable<? extends DebugTensorWatch> values)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
clearDebugTensorWatchOpts
public DebugOptions.Builder clearDebugTensorWatchOpts()
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
removeDebugTensorWatchOpts
public DebugOptions.Builder removeDebugTensorWatchOpts(int index)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
getDebugTensorWatchOptsBuilder
public DebugTensorWatch.Builder getDebugTensorWatchOptsBuilder(int index)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
getDebugTensorWatchOptsOrBuilder
public DebugTensorWatchOrBuilder getDebugTensorWatchOptsOrBuilder(int index)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;- Specified by:
getDebugTensorWatchOptsOrBuilderin interfaceDebugOptionsOrBuilder
-
getDebugTensorWatchOptsOrBuilderList
public java.util.List<? extends DebugTensorWatchOrBuilder> getDebugTensorWatchOptsOrBuilderList()
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;- Specified by:
getDebugTensorWatchOptsOrBuilderListin interfaceDebugOptionsOrBuilder
-
addDebugTensorWatchOptsBuilder
public DebugTensorWatch.Builder addDebugTensorWatchOptsBuilder()
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
addDebugTensorWatchOptsBuilder
public DebugTensorWatch.Builder addDebugTensorWatchOptsBuilder(int index)
Debugging options
repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
-
getDebugTensorWatchOptsBuilderList
public java.util.List<DebugTensorWatch.Builder> getDebugTensorWatchOptsBuilderList()
Debugging options
repeated .tensorflow.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:
getGlobalStepin interfaceDebugOptionsOrBuilder- 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:
getResetDiskByteUsagein interfaceDebugOptionsOrBuilder- 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
mergeUnknownFields
public final DebugOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DebugOptions.Builder>
-
-