All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorflow.framework.DebugTensorWatch Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/debug.proto

package org.tensorflow.framework;

/**
 * 
 * EXPERIMENTAL. Option for watching a node.
 * 
* * Protobuf type {@code tensorflow.DebugTensorWatch} */ public final class DebugTensorWatch extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.DebugTensorWatch) DebugTensorWatchOrBuilder { private static final long serialVersionUID = 0L; // Use DebugTensorWatch.newBuilder() to construct. private DebugTensorWatch(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugTensorWatch() { nodeName_ = ""; outputSlot_ = 0; debugOps_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; debugUrls_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; tolerateDebugOpCreationFailures_ = false; } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DebugTensorWatch( 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 10: { java.lang.String s = input.readStringRequireUtf8(); nodeName_ = s; break; } case 16: { outputSlot_ = input.readInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { debugOps_ = new org.nd4j.shade.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } debugOps_.add(s); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { debugUrls_ = new org.nd4j.shade.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } debugUrls_.add(s); break; } case 40: { tolerateDebugOpCreationFailures_ = input.readBool(); 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_ & 0x00000004) == 0x00000004)) { debugOps_ = debugOps_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { debugUrls_ = debugUrls_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.DebugProtos.internal_static_tensorflow_DebugTensorWatch_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.DebugProtos.internal_static_tensorflow_DebugTensorWatch_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.DebugTensorWatch.class, org.tensorflow.framework.DebugTensorWatch.Builder.class); } private int bitField0_; public static final int NODE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object nodeName_; /** *
   * Name of the node to watch.
   * 
* * string node_name = 1; */ public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeName_ = s; return s; } } /** *
   * Name of the node to watch.
   * 
* * string node_name = 1; */ public org.nd4j.shade.protobuf.ByteString getNodeNameBytes() { java.lang.Object ref = nodeName_; if (ref instanceof java.lang.String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } public static final int OUTPUT_SLOT_FIELD_NUMBER = 2; private int outputSlot_; /** *
   * Output slot to watch.
   * The semantics of output_slot == -1 is that the node is only watched for
   * completion, but not for any output tensors. See NodeCompletionCallback
   * in debug_gateway.h.
   * TODO(cais): Implement this semantics.
   * 
* * int32 output_slot = 2; */ public int getOutputSlot() { return outputSlot_; } public static final int DEBUG_OPS_FIELD_NUMBER = 3; private org.nd4j.shade.protobuf.LazyStringList debugOps_; /** *
   * Name(s) of the debugging op(s).
   * One or more than one probes on a tensor.
   * e.g., {"DebugIdentity", "DebugNanCount"}
   * 
* * repeated string debug_ops = 3; */ public org.nd4j.shade.protobuf.ProtocolStringList getDebugOpsList() { return debugOps_; } /** *
   * Name(s) of the debugging op(s).
   * One or more than one probes on a tensor.
   * e.g., {"DebugIdentity", "DebugNanCount"}
   * 
* * repeated string debug_ops = 3; */ public int getDebugOpsCount() { return debugOps_.size(); } /** *
   * Name(s) of the debugging op(s).
   * One or more than one probes on a tensor.
   * e.g., {"DebugIdentity", "DebugNanCount"}
   * 
* * repeated string debug_ops = 3; */ public java.lang.String getDebugOps(int index) { return debugOps_.get(index); } /** *
   * Name(s) of the debugging op(s).
   * One or more than one probes on a tensor.
   * e.g., {"DebugIdentity", "DebugNanCount"}
   * 
* * repeated string debug_ops = 3; */ public org.nd4j.shade.protobuf.ByteString getDebugOpsBytes(int index) { return debugOps_.getByteString(index); } public static final int DEBUG_URLS_FIELD_NUMBER = 4; private org.nd4j.shade.protobuf.LazyStringList debugUrls_; /** *
   * URL(s) for debug targets(s).
   * Supported URL formats are:
   *   - file:///foo/tfdbg_dump: Writes out Event content to file
   *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
   *     already exist.
   *   - grpc://localhost:11011: Sends an RPC request to an EventListener
   *     service running at localhost:11011 with the event.
   *   - memcbk:///event_key: Routes tensors to clients using the
   *     callback registered with the DebugCallbackRegistry for event_key.
   * Each debug op listed in debug_ops will publish its output tensor (debug
   * signal) to all URLs in debug_urls.
   * N.B. Session::Run() supports concurrent invocations of the same inputs
   * (feed keys), outputs and target nodes. If such concurrent invocations
   * are to be debugged, the callers of Session::Run() must use distinct
   * debug_urls to make sure that the streamed or dumped events do not overlap
   * among the invocations.
   * TODO(cais): More visible documentation of this in g3docs.
   * 
* * repeated string debug_urls = 4; */ public org.nd4j.shade.protobuf.ProtocolStringList getDebugUrlsList() { return debugUrls_; } /** *
   * URL(s) for debug targets(s).
   * Supported URL formats are:
   *   - file:///foo/tfdbg_dump: Writes out Event content to file
   *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
   *     already exist.
   *   - grpc://localhost:11011: Sends an RPC request to an EventListener
   *     service running at localhost:11011 with the event.
   *   - memcbk:///event_key: Routes tensors to clients using the
   *     callback registered with the DebugCallbackRegistry for event_key.
   * Each debug op listed in debug_ops will publish its output tensor (debug
   * signal) to all URLs in debug_urls.
   * N.B. Session::Run() supports concurrent invocations of the same inputs
   * (feed keys), outputs and target nodes. If such concurrent invocations
   * are to be debugged, the callers of Session::Run() must use distinct
   * debug_urls to make sure that the streamed or dumped events do not overlap
   * among the invocations.
   * TODO(cais): More visible documentation of this in g3docs.
   * 
* * repeated string debug_urls = 4; */ public int getDebugUrlsCount() { return debugUrls_.size(); } /** *
   * URL(s) for debug targets(s).
   * Supported URL formats are:
   *   - file:///foo/tfdbg_dump: Writes out Event content to file
   *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
   *     already exist.
   *   - grpc://localhost:11011: Sends an RPC request to an EventListener
   *     service running at localhost:11011 with the event.
   *   - memcbk:///event_key: Routes tensors to clients using the
   *     callback registered with the DebugCallbackRegistry for event_key.
   * Each debug op listed in debug_ops will publish its output tensor (debug
   * signal) to all URLs in debug_urls.
   * N.B. Session::Run() supports concurrent invocations of the same inputs
   * (feed keys), outputs and target nodes. If such concurrent invocations
   * are to be debugged, the callers of Session::Run() must use distinct
   * debug_urls to make sure that the streamed or dumped events do not overlap
   * among the invocations.
   * TODO(cais): More visible documentation of this in g3docs.
   * 
* * repeated string debug_urls = 4; */ public java.lang.String getDebugUrls(int index) { return debugUrls_.get(index); } /** *
   * URL(s) for debug targets(s).
   * Supported URL formats are:
   *   - file:///foo/tfdbg_dump: Writes out Event content to file
   *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
   *     already exist.
   *   - grpc://localhost:11011: Sends an RPC request to an EventListener
   *     service running at localhost:11011 with the event.
   *   - memcbk:///event_key: Routes tensors to clients using the
   *     callback registered with the DebugCallbackRegistry for event_key.
   * Each debug op listed in debug_ops will publish its output tensor (debug
   * signal) to all URLs in debug_urls.
   * N.B. Session::Run() supports concurrent invocations of the same inputs
   * (feed keys), outputs and target nodes. If such concurrent invocations
   * are to be debugged, the callers of Session::Run() must use distinct
   * debug_urls to make sure that the streamed or dumped events do not overlap
   * among the invocations.
   * TODO(cais): More visible documentation of this in g3docs.
   * 
* * repeated string debug_urls = 4; */ public org.nd4j.shade.protobuf.ByteString getDebugUrlsBytes(int index) { return debugUrls_.getByteString(index); } public static final int TOLERATE_DEBUG_OP_CREATION_FAILURES_FIELD_NUMBER = 5; private boolean tolerateDebugOpCreationFailures_; /** *
   * Do not error out if debug op creation fails (e.g., due to dtype
   * incompatibility). Instead, just log the failure.
   * 
* * bool tolerate_debug_op_creation_failures = 5; */ public boolean getTolerateDebugOpCreationFailures() { return tolerateDebugOpCreationFailures_; } 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 { if (!getNodeNameBytes().isEmpty()) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, nodeName_); } if (outputSlot_ != 0) { output.writeInt32(2, outputSlot_); } for (int i = 0; i < debugOps_.size(); i++) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 3, debugOps_.getRaw(i)); } for (int i = 0; i < debugUrls_.size(); i++) { org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 4, debugUrls_.getRaw(i)); } if (tolerateDebugOpCreationFailures_ != false) { output.writeBool(5, tolerateDebugOpCreationFailures_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNodeNameBytes().isEmpty()) { size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, nodeName_); } if (outputSlot_ != 0) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeInt32Size(2, outputSlot_); } { int dataSize = 0; for (int i = 0; i < debugOps_.size(); i++) { dataSize += computeStringSizeNoTag(debugOps_.getRaw(i)); } size += dataSize; size += 1 * getDebugOpsList().size(); } { int dataSize = 0; for (int i = 0; i < debugUrls_.size(); i++) { dataSize += computeStringSizeNoTag(debugUrls_.getRaw(i)); } size += dataSize; size += 1 * getDebugUrlsList().size(); } if (tolerateDebugOpCreationFailures_ != false) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeBoolSize(5, tolerateDebugOpCreationFailures_); } 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.DebugTensorWatch)) { return super.equals(obj); } org.tensorflow.framework.DebugTensorWatch other = (org.tensorflow.framework.DebugTensorWatch) obj; boolean result = true; result = result && getNodeName() .equals(other.getNodeName()); result = result && (getOutputSlot() == other.getOutputSlot()); result = result && getDebugOpsList() .equals(other.getDebugOpsList()); result = result && getDebugUrlsList() .equals(other.getDebugUrlsList()); result = result && (getTolerateDebugOpCreationFailures() == other.getTolerateDebugOpCreationFailures()); 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(); hash = (37 * hash) + NODE_NAME_FIELD_NUMBER; hash = (53 * hash) + getNodeName().hashCode(); hash = (37 * hash) + OUTPUT_SLOT_FIELD_NUMBER; hash = (53 * hash) + getOutputSlot(); if (getDebugOpsCount() > 0) { hash = (37 * hash) + DEBUG_OPS_FIELD_NUMBER; hash = (53 * hash) + getDebugOpsList().hashCode(); } if (getDebugUrlsCount() > 0) { hash = (37 * hash) + DEBUG_URLS_FIELD_NUMBER; hash = (53 * hash) + getDebugUrlsList().hashCode(); } hash = (37 * hash) + TOLERATE_DEBUG_OP_CREATION_FAILURES_FIELD_NUMBER; hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashBoolean( getTolerateDebugOpCreationFailures()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.DebugTensorWatch parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.DebugTensorWatch 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.DebugTensorWatch parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.DebugTensorWatch 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.DebugTensorWatch parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.DebugTensorWatch 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.DebugTensorWatch parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.DebugTensorWatch 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.DebugTensorWatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.DebugTensorWatch 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.DebugTensorWatch 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.DebugTensorWatch 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.DebugTensorWatch 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. Option for watching a node.
   * 
* * Protobuf type {@code tensorflow.DebugTensorWatch} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.DebugTensorWatch) org.tensorflow.framework.DebugTensorWatchOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.DebugProtos.internal_static_tensorflow_DebugTensorWatch_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.DebugProtos.internal_static_tensorflow_DebugTensorWatch_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.DebugTensorWatch.class, org.tensorflow.framework.DebugTensorWatch.Builder.class); } // Construct using org.tensorflow.framework.DebugTensorWatch.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) { } } public Builder clear() { super.clear(); nodeName_ = ""; outputSlot_ = 0; debugOps_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); debugUrls_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); tolerateDebugOpCreationFailures_ = false; return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.DebugProtos.internal_static_tensorflow_DebugTensorWatch_descriptor; } public org.tensorflow.framework.DebugTensorWatch getDefaultInstanceForType() { return org.tensorflow.framework.DebugTensorWatch.getDefaultInstance(); } public org.tensorflow.framework.DebugTensorWatch build() { org.tensorflow.framework.DebugTensorWatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.DebugTensorWatch buildPartial() { org.tensorflow.framework.DebugTensorWatch result = new org.tensorflow.framework.DebugTensorWatch(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.nodeName_ = nodeName_; result.outputSlot_ = outputSlot_; if (((bitField0_ & 0x00000004) == 0x00000004)) { debugOps_ = debugOps_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.debugOps_ = debugOps_; if (((bitField0_ & 0x00000008) == 0x00000008)) { debugUrls_ = debugUrls_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.debugUrls_ = debugUrls_; result.tolerateDebugOpCreationFailures_ = tolerateDebugOpCreationFailures_; 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.DebugTensorWatch) { return mergeFrom((org.tensorflow.framework.DebugTensorWatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.DebugTensorWatch other) { if (other == org.tensorflow.framework.DebugTensorWatch.getDefaultInstance()) return this; if (!other.getNodeName().isEmpty()) { nodeName_ = other.nodeName_; onChanged(); } if (other.getOutputSlot() != 0) { setOutputSlot(other.getOutputSlot()); } if (!other.debugOps_.isEmpty()) { if (debugOps_.isEmpty()) { debugOps_ = other.debugOps_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDebugOpsIsMutable(); debugOps_.addAll(other.debugOps_); } onChanged(); } if (!other.debugUrls_.isEmpty()) { if (debugUrls_.isEmpty()) { debugUrls_ = other.debugUrls_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDebugUrlsIsMutable(); debugUrls_.addAll(other.debugUrls_); } onChanged(); } if (other.getTolerateDebugOpCreationFailures() != false) { setTolerateDebugOpCreationFailures(other.getTolerateDebugOpCreationFailures()); } 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.DebugTensorWatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.DebugTensorWatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object nodeName_ = ""; /** *
     * Name of the node to watch.
     * 
* * string node_name = 1; */ public java.lang.String getNodeName() { java.lang.Object ref = nodeName_; if (!(ref instanceof java.lang.String)) { org.nd4j.shade.protobuf.ByteString bs = (org.nd4j.shade.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of the node to watch.
     * 
* * string node_name = 1; */ public org.nd4j.shade.protobuf.ByteString getNodeNameBytes() { java.lang.Object ref = nodeName_; if (ref instanceof String) { org.nd4j.shade.protobuf.ByteString b = org.nd4j.shade.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeName_ = b; return b; } else { return (org.nd4j.shade.protobuf.ByteString) ref; } } /** *
     * Name of the node to watch.
     * 
* * string node_name = 1; */ public Builder setNodeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nodeName_ = value; onChanged(); return this; } /** *
     * Name of the node to watch.
     * 
* * string node_name = 1; */ public Builder clearNodeName() { nodeName_ = getDefaultInstance().getNodeName(); onChanged(); return this; } /** *
     * Name of the node to watch.
     * 
* * string node_name = 1; */ public Builder setNodeNameBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nodeName_ = value; onChanged(); return this; } private int outputSlot_ ; /** *
     * Output slot to watch.
     * The semantics of output_slot == -1 is that the node is only watched for
     * completion, but not for any output tensors. See NodeCompletionCallback
     * in debug_gateway.h.
     * TODO(cais): Implement this semantics.
     * 
* * int32 output_slot = 2; */ public int getOutputSlot() { return outputSlot_; } /** *
     * Output slot to watch.
     * The semantics of output_slot == -1 is that the node is only watched for
     * completion, but not for any output tensors. See NodeCompletionCallback
     * in debug_gateway.h.
     * TODO(cais): Implement this semantics.
     * 
* * int32 output_slot = 2; */ public Builder setOutputSlot(int value) { outputSlot_ = value; onChanged(); return this; } /** *
     * Output slot to watch.
     * The semantics of output_slot == -1 is that the node is only watched for
     * completion, but not for any output tensors. See NodeCompletionCallback
     * in debug_gateway.h.
     * TODO(cais): Implement this semantics.
     * 
* * int32 output_slot = 2; */ public Builder clearOutputSlot() { outputSlot_ = 0; onChanged(); return this; } private org.nd4j.shade.protobuf.LazyStringList debugOps_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; private void ensureDebugOpsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { debugOps_ = new org.nd4j.shade.protobuf.LazyStringArrayList(debugOps_); bitField0_ |= 0x00000004; } } /** *
     * Name(s) of the debugging op(s).
     * One or more than one probes on a tensor.
     * e.g., {"DebugIdentity", "DebugNanCount"}
     * 
* * repeated string debug_ops = 3; */ public org.nd4j.shade.protobuf.ProtocolStringList getDebugOpsList() { return debugOps_.getUnmodifiableView(); } /** *
     * Name(s) of the debugging op(s).
     * One or more than one probes on a tensor.
     * e.g., {"DebugIdentity", "DebugNanCount"}
     * 
* * repeated string debug_ops = 3; */ public int getDebugOpsCount() { return debugOps_.size(); } /** *
     * Name(s) of the debugging op(s).
     * One or more than one probes on a tensor.
     * e.g., {"DebugIdentity", "DebugNanCount"}
     * 
* * repeated string debug_ops = 3; */ public java.lang.String getDebugOps(int index) { return debugOps_.get(index); } /** *
     * Name(s) of the debugging op(s).
     * One or more than one probes on a tensor.
     * e.g., {"DebugIdentity", "DebugNanCount"}
     * 
* * repeated string debug_ops = 3; */ public org.nd4j.shade.protobuf.ByteString getDebugOpsBytes(int index) { return debugOps_.getByteString(index); } /** *
     * Name(s) of the debugging op(s).
     * One or more than one probes on a tensor.
     * e.g., {"DebugIdentity", "DebugNanCount"}
     * 
* * repeated string debug_ops = 3; */ public Builder setDebugOps( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDebugOpsIsMutable(); debugOps_.set(index, value); onChanged(); return this; } /** *
     * Name(s) of the debugging op(s).
     * One or more than one probes on a tensor.
     * e.g., {"DebugIdentity", "DebugNanCount"}
     * 
* * repeated string debug_ops = 3; */ public Builder addDebugOps( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDebugOpsIsMutable(); debugOps_.add(value); onChanged(); return this; } /** *
     * Name(s) of the debugging op(s).
     * One or more than one probes on a tensor.
     * e.g., {"DebugIdentity", "DebugNanCount"}
     * 
* * repeated string debug_ops = 3; */ public Builder addAllDebugOps( java.lang.Iterable values) { ensureDebugOpsIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, debugOps_); onChanged(); return this; } /** *
     * Name(s) of the debugging op(s).
     * One or more than one probes on a tensor.
     * e.g., {"DebugIdentity", "DebugNanCount"}
     * 
* * repeated string debug_ops = 3; */ public Builder clearDebugOps() { debugOps_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Name(s) of the debugging op(s).
     * One or more than one probes on a tensor.
     * e.g., {"DebugIdentity", "DebugNanCount"}
     * 
* * repeated string debug_ops = 3; */ public Builder addDebugOpsBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDebugOpsIsMutable(); debugOps_.add(value); onChanged(); return this; } private org.nd4j.shade.protobuf.LazyStringList debugUrls_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; private void ensureDebugUrlsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { debugUrls_ = new org.nd4j.shade.protobuf.LazyStringArrayList(debugUrls_); bitField0_ |= 0x00000008; } } /** *
     * URL(s) for debug targets(s).
     * Supported URL formats are:
     *   - file:///foo/tfdbg_dump: Writes out Event content to file
     *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
     *     already exist.
     *   - grpc://localhost:11011: Sends an RPC request to an EventListener
     *     service running at localhost:11011 with the event.
     *   - memcbk:///event_key: Routes tensors to clients using the
     *     callback registered with the DebugCallbackRegistry for event_key.
     * Each debug op listed in debug_ops will publish its output tensor (debug
     * signal) to all URLs in debug_urls.
     * N.B. Session::Run() supports concurrent invocations of the same inputs
     * (feed keys), outputs and target nodes. If such concurrent invocations
     * are to be debugged, the callers of Session::Run() must use distinct
     * debug_urls to make sure that the streamed or dumped events do not overlap
     * among the invocations.
     * TODO(cais): More visible documentation of this in g3docs.
     * 
* * repeated string debug_urls = 4; */ public org.nd4j.shade.protobuf.ProtocolStringList getDebugUrlsList() { return debugUrls_.getUnmodifiableView(); } /** *
     * URL(s) for debug targets(s).
     * Supported URL formats are:
     *   - file:///foo/tfdbg_dump: Writes out Event content to file
     *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
     *     already exist.
     *   - grpc://localhost:11011: Sends an RPC request to an EventListener
     *     service running at localhost:11011 with the event.
     *   - memcbk:///event_key: Routes tensors to clients using the
     *     callback registered with the DebugCallbackRegistry for event_key.
     * Each debug op listed in debug_ops will publish its output tensor (debug
     * signal) to all URLs in debug_urls.
     * N.B. Session::Run() supports concurrent invocations of the same inputs
     * (feed keys), outputs and target nodes. If such concurrent invocations
     * are to be debugged, the callers of Session::Run() must use distinct
     * debug_urls to make sure that the streamed or dumped events do not overlap
     * among the invocations.
     * TODO(cais): More visible documentation of this in g3docs.
     * 
* * repeated string debug_urls = 4; */ public int getDebugUrlsCount() { return debugUrls_.size(); } /** *
     * URL(s) for debug targets(s).
     * Supported URL formats are:
     *   - file:///foo/tfdbg_dump: Writes out Event content to file
     *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
     *     already exist.
     *   - grpc://localhost:11011: Sends an RPC request to an EventListener
     *     service running at localhost:11011 with the event.
     *   - memcbk:///event_key: Routes tensors to clients using the
     *     callback registered with the DebugCallbackRegistry for event_key.
     * Each debug op listed in debug_ops will publish its output tensor (debug
     * signal) to all URLs in debug_urls.
     * N.B. Session::Run() supports concurrent invocations of the same inputs
     * (feed keys), outputs and target nodes. If such concurrent invocations
     * are to be debugged, the callers of Session::Run() must use distinct
     * debug_urls to make sure that the streamed or dumped events do not overlap
     * among the invocations.
     * TODO(cais): More visible documentation of this in g3docs.
     * 
* * repeated string debug_urls = 4; */ public java.lang.String getDebugUrls(int index) { return debugUrls_.get(index); } /** *
     * URL(s) for debug targets(s).
     * Supported URL formats are:
     *   - file:///foo/tfdbg_dump: Writes out Event content to file
     *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
     *     already exist.
     *   - grpc://localhost:11011: Sends an RPC request to an EventListener
     *     service running at localhost:11011 with the event.
     *   - memcbk:///event_key: Routes tensors to clients using the
     *     callback registered with the DebugCallbackRegistry for event_key.
     * Each debug op listed in debug_ops will publish its output tensor (debug
     * signal) to all URLs in debug_urls.
     * N.B. Session::Run() supports concurrent invocations of the same inputs
     * (feed keys), outputs and target nodes. If such concurrent invocations
     * are to be debugged, the callers of Session::Run() must use distinct
     * debug_urls to make sure that the streamed or dumped events do not overlap
     * among the invocations.
     * TODO(cais): More visible documentation of this in g3docs.
     * 
* * repeated string debug_urls = 4; */ public org.nd4j.shade.protobuf.ByteString getDebugUrlsBytes(int index) { return debugUrls_.getByteString(index); } /** *
     * URL(s) for debug targets(s).
     * Supported URL formats are:
     *   - file:///foo/tfdbg_dump: Writes out Event content to file
     *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
     *     already exist.
     *   - grpc://localhost:11011: Sends an RPC request to an EventListener
     *     service running at localhost:11011 with the event.
     *   - memcbk:///event_key: Routes tensors to clients using the
     *     callback registered with the DebugCallbackRegistry for event_key.
     * Each debug op listed in debug_ops will publish its output tensor (debug
     * signal) to all URLs in debug_urls.
     * N.B. Session::Run() supports concurrent invocations of the same inputs
     * (feed keys), outputs and target nodes. If such concurrent invocations
     * are to be debugged, the callers of Session::Run() must use distinct
     * debug_urls to make sure that the streamed or dumped events do not overlap
     * among the invocations.
     * TODO(cais): More visible documentation of this in g3docs.
     * 
* * repeated string debug_urls = 4; */ public Builder setDebugUrls( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDebugUrlsIsMutable(); debugUrls_.set(index, value); onChanged(); return this; } /** *
     * URL(s) for debug targets(s).
     * Supported URL formats are:
     *   - file:///foo/tfdbg_dump: Writes out Event content to file
     *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
     *     already exist.
     *   - grpc://localhost:11011: Sends an RPC request to an EventListener
     *     service running at localhost:11011 with the event.
     *   - memcbk:///event_key: Routes tensors to clients using the
     *     callback registered with the DebugCallbackRegistry for event_key.
     * Each debug op listed in debug_ops will publish its output tensor (debug
     * signal) to all URLs in debug_urls.
     * N.B. Session::Run() supports concurrent invocations of the same inputs
     * (feed keys), outputs and target nodes. If such concurrent invocations
     * are to be debugged, the callers of Session::Run() must use distinct
     * debug_urls to make sure that the streamed or dumped events do not overlap
     * among the invocations.
     * TODO(cais): More visible documentation of this in g3docs.
     * 
* * repeated string debug_urls = 4; */ public Builder addDebugUrls( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDebugUrlsIsMutable(); debugUrls_.add(value); onChanged(); return this; } /** *
     * URL(s) for debug targets(s).
     * Supported URL formats are:
     *   - file:///foo/tfdbg_dump: Writes out Event content to file
     *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
     *     already exist.
     *   - grpc://localhost:11011: Sends an RPC request to an EventListener
     *     service running at localhost:11011 with the event.
     *   - memcbk:///event_key: Routes tensors to clients using the
     *     callback registered with the DebugCallbackRegistry for event_key.
     * Each debug op listed in debug_ops will publish its output tensor (debug
     * signal) to all URLs in debug_urls.
     * N.B. Session::Run() supports concurrent invocations of the same inputs
     * (feed keys), outputs and target nodes. If such concurrent invocations
     * are to be debugged, the callers of Session::Run() must use distinct
     * debug_urls to make sure that the streamed or dumped events do not overlap
     * among the invocations.
     * TODO(cais): More visible documentation of this in g3docs.
     * 
* * repeated string debug_urls = 4; */ public Builder addAllDebugUrls( java.lang.Iterable values) { ensureDebugUrlsIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, debugUrls_); onChanged(); return this; } /** *
     * URL(s) for debug targets(s).
     * Supported URL formats are:
     *   - file:///foo/tfdbg_dump: Writes out Event content to file
     *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
     *     already exist.
     *   - grpc://localhost:11011: Sends an RPC request to an EventListener
     *     service running at localhost:11011 with the event.
     *   - memcbk:///event_key: Routes tensors to clients using the
     *     callback registered with the DebugCallbackRegistry for event_key.
     * Each debug op listed in debug_ops will publish its output tensor (debug
     * signal) to all URLs in debug_urls.
     * N.B. Session::Run() supports concurrent invocations of the same inputs
     * (feed keys), outputs and target nodes. If such concurrent invocations
     * are to be debugged, the callers of Session::Run() must use distinct
     * debug_urls to make sure that the streamed or dumped events do not overlap
     * among the invocations.
     * TODO(cais): More visible documentation of this in g3docs.
     * 
* * repeated string debug_urls = 4; */ public Builder clearDebugUrls() { debugUrls_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * URL(s) for debug targets(s).
     * Supported URL formats are:
     *   - file:///foo/tfdbg_dump: Writes out Event content to file
     *     /foo/tfdbg_dump.  Assumes all directories can be created if they don't
     *     already exist.
     *   - grpc://localhost:11011: Sends an RPC request to an EventListener
     *     service running at localhost:11011 with the event.
     *   - memcbk:///event_key: Routes tensors to clients using the
     *     callback registered with the DebugCallbackRegistry for event_key.
     * Each debug op listed in debug_ops will publish its output tensor (debug
     * signal) to all URLs in debug_urls.
     * N.B. Session::Run() supports concurrent invocations of the same inputs
     * (feed keys), outputs and target nodes. If such concurrent invocations
     * are to be debugged, the callers of Session::Run() must use distinct
     * debug_urls to make sure that the streamed or dumped events do not overlap
     * among the invocations.
     * TODO(cais): More visible documentation of this in g3docs.
     * 
* * repeated string debug_urls = 4; */ public Builder addDebugUrlsBytes( org.nd4j.shade.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDebugUrlsIsMutable(); debugUrls_.add(value); onChanged(); return this; } private boolean tolerateDebugOpCreationFailures_ ; /** *
     * Do not error out if debug op creation fails (e.g., due to dtype
     * incompatibility). Instead, just log the failure.
     * 
* * bool tolerate_debug_op_creation_failures = 5; */ public boolean getTolerateDebugOpCreationFailures() { return tolerateDebugOpCreationFailures_; } /** *
     * Do not error out if debug op creation fails (e.g., due to dtype
     * incompatibility). Instead, just log the failure.
     * 
* * bool tolerate_debug_op_creation_failures = 5; */ public Builder setTolerateDebugOpCreationFailures(boolean value) { tolerateDebugOpCreationFailures_ = value; onChanged(); return this; } /** *
     * Do not error out if debug op creation fails (e.g., due to dtype
     * incompatibility). Instead, just log the failure.
     * 
* * bool tolerate_debug_op_creation_failures = 5; */ public Builder clearTolerateDebugOpCreationFailures() { tolerateDebugOpCreationFailures_ = false; 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.DebugTensorWatch) } // @@protoc_insertion_point(class_scope:tensorflow.DebugTensorWatch) private static final org.tensorflow.framework.DebugTensorWatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.DebugTensorWatch(); } public static org.tensorflow.framework.DebugTensorWatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public DebugTensorWatch parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new DebugTensorWatch(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.DebugTensorWatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy