
org.tensorflow.framework.DebugOptions Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/debug.proto
package org.tensorflow.framework;
/**
*
* EXPERIMENTAL. Options for initializing DebuggerState.
*
*
* Protobuf type {@code tensorflow.DebugOptions}
*/
public final class DebugOptions extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.DebugOptions)
DebugOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DebugOptions.newBuilder() to construct.
private DebugOptions(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DebugOptions() {
debugTensorWatchOpts_ = java.util.Collections.emptyList();
globalStep_ = 0L;
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DebugOptions(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
debugTensorWatchOpts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
debugTensorWatchOpts_.add(
input.readMessage(org.tensorflow.framework.DebugTensorWatch.parser(), extensionRegistry));
break;
}
case 80: {
globalStep_ = input.readInt64();
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
debugTensorWatchOpts_ = java.util.Collections.unmodifiableList(debugTensorWatchOpts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.DebugProtos.internal_static_tensorflow_DebugOptions_descriptor;
}
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.DebugProtos.internal_static_tensorflow_DebugOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.DebugOptions.class, org.tensorflow.framework.DebugOptions.Builder.class);
}
private int bitField0_;
public static final int DEBUG_TENSOR_WATCH_OPTS_FIELD_NUMBER = 4;
private java.util.List debugTensorWatchOpts_;
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public java.util.List getDebugTensorWatchOptsList() {
return debugTensorWatchOpts_;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public java.util.List extends org.tensorflow.framework.DebugTensorWatchOrBuilder>
getDebugTensorWatchOptsOrBuilderList() {
return debugTensorWatchOpts_;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public int getDebugTensorWatchOptsCount() {
return debugTensorWatchOpts_.size();
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public org.tensorflow.framework.DebugTensorWatch getDebugTensorWatchOpts(int index) {
return debugTensorWatchOpts_.get(index);
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public org.tensorflow.framework.DebugTensorWatchOrBuilder getDebugTensorWatchOptsOrBuilder(
int index) {
return debugTensorWatchOpts_.get(index);
}
public static final int GLOBAL_STEP_FIELD_NUMBER = 10;
private long globalStep_;
/**
*
* Caller-specified global step count.
* Note that this is distinct from the session run count and the executor
* step count.
*
*
* int64 global_step = 10;
*/
public long getGlobalStep() {
return globalStep_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < debugTensorWatchOpts_.size(); i++) {
output.writeMessage(4, debugTensorWatchOpts_.get(i));
}
if (globalStep_ != 0L) {
output.writeInt64(10, globalStep_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < debugTensorWatchOpts_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(4, debugTensorWatchOpts_.get(i));
}
if (globalStep_ != 0L) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeInt64Size(10, globalStep_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.DebugOptions)) {
return super.equals(obj);
}
org.tensorflow.framework.DebugOptions other = (org.tensorflow.framework.DebugOptions) obj;
boolean result = true;
result = result && getDebugTensorWatchOptsList()
.equals(other.getDebugTensorWatchOptsList());
result = result && (getGlobalStep()
== other.getGlobalStep());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getDebugTensorWatchOptsCount() > 0) {
hash = (37 * hash) + DEBUG_TENSOR_WATCH_OPTS_FIELD_NUMBER;
hash = (53 * hash) + getDebugTensorWatchOptsList().hashCode();
}
hash = (37 * hash) + GLOBAL_STEP_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashLong(
getGlobalStep());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.DebugOptions parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.DebugOptions parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.DebugOptions parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.DebugOptions parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.DebugOptions parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.DebugOptions parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.DebugOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.DebugOptions parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.DebugOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.DebugOptions parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.DebugOptions parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.DebugOptions parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.DebugOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* EXPERIMENTAL. Options for initializing DebuggerState.
*
*
* Protobuf type {@code tensorflow.DebugOptions}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.DebugOptions)
org.tensorflow.framework.DebugOptionsOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.DebugProtos.internal_static_tensorflow_DebugOptions_descriptor;
}
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.DebugProtos.internal_static_tensorflow_DebugOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.DebugOptions.class, org.tensorflow.framework.DebugOptions.Builder.class);
}
// Construct using org.tensorflow.framework.DebugOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.nd4j.shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDebugTensorWatchOptsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (debugTensorWatchOptsBuilder_ == null) {
debugTensorWatchOpts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
debugTensorWatchOptsBuilder_.clear();
}
globalStep_ = 0L;
return this;
}
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.DebugProtos.internal_static_tensorflow_DebugOptions_descriptor;
}
public org.tensorflow.framework.DebugOptions getDefaultInstanceForType() {
return org.tensorflow.framework.DebugOptions.getDefaultInstance();
}
public org.tensorflow.framework.DebugOptions build() {
org.tensorflow.framework.DebugOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.DebugOptions buildPartial() {
org.tensorflow.framework.DebugOptions result = new org.tensorflow.framework.DebugOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (debugTensorWatchOptsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
debugTensorWatchOpts_ = java.util.Collections.unmodifiableList(debugTensorWatchOpts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.debugTensorWatchOpts_ = debugTensorWatchOpts_;
} else {
result.debugTensorWatchOpts_ = debugTensorWatchOptsBuilder_.build();
}
result.globalStep_ = globalStep_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) {
if (other instanceof org.tensorflow.framework.DebugOptions) {
return mergeFrom((org.tensorflow.framework.DebugOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.DebugOptions other) {
if (other == org.tensorflow.framework.DebugOptions.getDefaultInstance()) return this;
if (debugTensorWatchOptsBuilder_ == null) {
if (!other.debugTensorWatchOpts_.isEmpty()) {
if (debugTensorWatchOpts_.isEmpty()) {
debugTensorWatchOpts_ = other.debugTensorWatchOpts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDebugTensorWatchOptsIsMutable();
debugTensorWatchOpts_.addAll(other.debugTensorWatchOpts_);
}
onChanged();
}
} else {
if (!other.debugTensorWatchOpts_.isEmpty()) {
if (debugTensorWatchOptsBuilder_.isEmpty()) {
debugTensorWatchOptsBuilder_.dispose();
debugTensorWatchOptsBuilder_ = null;
debugTensorWatchOpts_ = other.debugTensorWatchOpts_;
bitField0_ = (bitField0_ & ~0x00000001);
debugTensorWatchOptsBuilder_ =
org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDebugTensorWatchOptsFieldBuilder() : null;
} else {
debugTensorWatchOptsBuilder_.addAllMessages(other.debugTensorWatchOpts_);
}
}
}
if (other.getGlobalStep() != 0L) {
setGlobalStep(other.getGlobalStep());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.DebugOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.DebugOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List debugTensorWatchOpts_ =
java.util.Collections.emptyList();
private void ensureDebugTensorWatchOptsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
debugTensorWatchOpts_ = new java.util.ArrayList(debugTensorWatchOpts_);
bitField0_ |= 0x00000001;
}
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.DebugTensorWatch, org.tensorflow.framework.DebugTensorWatch.Builder, org.tensorflow.framework.DebugTensorWatchOrBuilder> debugTensorWatchOptsBuilder_;
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public java.util.List getDebugTensorWatchOptsList() {
if (debugTensorWatchOptsBuilder_ == null) {
return java.util.Collections.unmodifiableList(debugTensorWatchOpts_);
} else {
return debugTensorWatchOptsBuilder_.getMessageList();
}
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public int getDebugTensorWatchOptsCount() {
if (debugTensorWatchOptsBuilder_ == null) {
return debugTensorWatchOpts_.size();
} else {
return debugTensorWatchOptsBuilder_.getCount();
}
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public org.tensorflow.framework.DebugTensorWatch getDebugTensorWatchOpts(int index) {
if (debugTensorWatchOptsBuilder_ == null) {
return debugTensorWatchOpts_.get(index);
} else {
return debugTensorWatchOptsBuilder_.getMessage(index);
}
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public Builder setDebugTensorWatchOpts(
int index, org.tensorflow.framework.DebugTensorWatch value) {
if (debugTensorWatchOptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDebugTensorWatchOptsIsMutable();
debugTensorWatchOpts_.set(index, value);
onChanged();
} else {
debugTensorWatchOptsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public Builder setDebugTensorWatchOpts(
int index, org.tensorflow.framework.DebugTensorWatch.Builder builderForValue) {
if (debugTensorWatchOptsBuilder_ == null) {
ensureDebugTensorWatchOptsIsMutable();
debugTensorWatchOpts_.set(index, builderForValue.build());
onChanged();
} else {
debugTensorWatchOptsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public Builder addDebugTensorWatchOpts(org.tensorflow.framework.DebugTensorWatch value) {
if (debugTensorWatchOptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDebugTensorWatchOptsIsMutable();
debugTensorWatchOpts_.add(value);
onChanged();
} else {
debugTensorWatchOptsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public Builder addDebugTensorWatchOpts(
int index, org.tensorflow.framework.DebugTensorWatch value) {
if (debugTensorWatchOptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDebugTensorWatchOptsIsMutable();
debugTensorWatchOpts_.add(index, value);
onChanged();
} else {
debugTensorWatchOptsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public Builder addDebugTensorWatchOpts(
org.tensorflow.framework.DebugTensorWatch.Builder builderForValue) {
if (debugTensorWatchOptsBuilder_ == null) {
ensureDebugTensorWatchOptsIsMutable();
debugTensorWatchOpts_.add(builderForValue.build());
onChanged();
} else {
debugTensorWatchOptsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public Builder addDebugTensorWatchOpts(
int index, org.tensorflow.framework.DebugTensorWatch.Builder builderForValue) {
if (debugTensorWatchOptsBuilder_ == null) {
ensureDebugTensorWatchOptsIsMutable();
debugTensorWatchOpts_.add(index, builderForValue.build());
onChanged();
} else {
debugTensorWatchOptsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public Builder addAllDebugTensorWatchOpts(
java.lang.Iterable extends org.tensorflow.framework.DebugTensorWatch> values) {
if (debugTensorWatchOptsBuilder_ == null) {
ensureDebugTensorWatchOptsIsMutable();
org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll(
values, debugTensorWatchOpts_);
onChanged();
} else {
debugTensorWatchOptsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public Builder clearDebugTensorWatchOpts() {
if (debugTensorWatchOptsBuilder_ == null) {
debugTensorWatchOpts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
debugTensorWatchOptsBuilder_.clear();
}
return this;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public Builder removeDebugTensorWatchOpts(int index) {
if (debugTensorWatchOptsBuilder_ == null) {
ensureDebugTensorWatchOptsIsMutable();
debugTensorWatchOpts_.remove(index);
onChanged();
} else {
debugTensorWatchOptsBuilder_.remove(index);
}
return this;
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public org.tensorflow.framework.DebugTensorWatch.Builder getDebugTensorWatchOptsBuilder(
int index) {
return getDebugTensorWatchOptsFieldBuilder().getBuilder(index);
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public org.tensorflow.framework.DebugTensorWatchOrBuilder getDebugTensorWatchOptsOrBuilder(
int index) {
if (debugTensorWatchOptsBuilder_ == null) {
return debugTensorWatchOpts_.get(index); } else {
return debugTensorWatchOptsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public java.util.List extends org.tensorflow.framework.DebugTensorWatchOrBuilder>
getDebugTensorWatchOptsOrBuilderList() {
if (debugTensorWatchOptsBuilder_ != null) {
return debugTensorWatchOptsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(debugTensorWatchOpts_);
}
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public org.tensorflow.framework.DebugTensorWatch.Builder addDebugTensorWatchOptsBuilder() {
return getDebugTensorWatchOptsFieldBuilder().addBuilder(
org.tensorflow.framework.DebugTensorWatch.getDefaultInstance());
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public org.tensorflow.framework.DebugTensorWatch.Builder addDebugTensorWatchOptsBuilder(
int index) {
return getDebugTensorWatchOptsFieldBuilder().addBuilder(
index, org.tensorflow.framework.DebugTensorWatch.getDefaultInstance());
}
/**
*
* Debugging options
*
*
* repeated .tensorflow.DebugTensorWatch debug_tensor_watch_opts = 4;
*/
public java.util.List
getDebugTensorWatchOptsBuilderList() {
return getDebugTensorWatchOptsFieldBuilder().getBuilderList();
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.DebugTensorWatch, org.tensorflow.framework.DebugTensorWatch.Builder, org.tensorflow.framework.DebugTensorWatchOrBuilder>
getDebugTensorWatchOptsFieldBuilder() {
if (debugTensorWatchOptsBuilder_ == null) {
debugTensorWatchOptsBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.DebugTensorWatch, org.tensorflow.framework.DebugTensorWatch.Builder, org.tensorflow.framework.DebugTensorWatchOrBuilder>(
debugTensorWatchOpts_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
debugTensorWatchOpts_ = null;
}
return debugTensorWatchOptsBuilder_;
}
private long globalStep_ ;
/**
*
* Caller-specified global step count.
* Note that this is distinct from the session run count and the executor
* step count.
*
*
* int64 global_step = 10;
*/
public long getGlobalStep() {
return globalStep_;
}
/**
*
* Caller-specified global step count.
* Note that this is distinct from the session run count and the executor
* step count.
*
*
* int64 global_step = 10;
*/
public Builder setGlobalStep(long value) {
globalStep_ = value;
onChanged();
return this;
}
/**
*
* Caller-specified global step count.
* Note that this is distinct from the session run count and the executor
* step count.
*
*
* int64 global_step = 10;
*/
public Builder clearGlobalStep() {
globalStep_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.DebugOptions)
}
// @@protoc_insertion_point(class_scope:tensorflow.DebugOptions)
private static final org.tensorflow.framework.DebugOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.DebugOptions();
}
public static org.tensorflow.framework.DebugOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
public DebugOptions parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new DebugOptions(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.DebugOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy