Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* string node_name = 1;
* @return The bytes for nodeName.
*/
@java.lang.Override
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;
* @return The outputSlot.
*/
@java.lang.Override
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;
* @return A list containing the debugOps.
*/
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;
* @return The count of debugOps.
*/
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;
* @param index The index of the element to return.
* @return The debugOps at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the debugOps at the given index.
*/
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;
* @return A list containing the debugUrls.
*/
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;
* @return The count of debugUrls.
*/
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;
* @param index The index of the element to return.
* @return The debugUrls at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the debugUrls at the given index.
*/
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;
* @return The tolerateDebugOpCreationFailures.
*/
@java.lang.Override
public boolean getTolerateDebugOpCreationFailures() {
return tolerateDebugOpCreationFailures_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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);
}
@java.lang.Override
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;
if (!getNodeName()
.equals(other.getNodeName())) return false;
if (getOutputSlot()
!= other.getOutputSlot()) return false;
if (!getDebugOpsList()
.equals(other.getDebugOpsList())) return false;
if (!getDebugUrlsList()
.equals(other.getDebugUrlsList())) return false;
if (getTolerateDebugOpCreationFailures()
!= other.getTolerateDebugOpCreationFailures()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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);
}
@java.lang.Override
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);
}
@java.lang.Override
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;
}
/**
*
*
* string node_name = 1;
* @return The bytes for nodeName.
*/
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;
* @param value The nodeName to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearNodeName() {
nodeName_ = getDefaultInstance().getNodeName();
onChanged();
return this;
}
/**
*
* Name of the node to watch.
*
*
* string node_name = 1;
* @param value The bytes for nodeName to set.
* @return This builder for chaining.
*/
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;
* @return The outputSlot.
*/
@java.lang.Override
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;
* @param value The outputSlot to set.
* @return This builder for chaining.
*/
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.
*
* 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;
* @return A list containing the debugOps.
*/
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;
* @return The count of debugOps.
*/
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;
* @param index The index of the element to return.
* @return The debugOps at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the debugOps at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The debugOps to set.
* @return This builder for chaining.
*/
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;
* @param value The debugOps to add.
* @return This builder for chaining.
*/
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;
* @param values The debugOps to add.
* @return This builder for chaining.
*/
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"}
*
* 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;
* @param value The bytes of the debugOps to add.
* @return This builder for chaining.
*/
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_ & 0x00000002) != 0)) {
debugUrls_ = new org.nd4j.shade.protobuf.LazyStringArrayList(debugUrls_);
bitField0_ |= 0x00000002;
}
}
/**
*
* 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;
* @return A list containing the debugUrls.
*/
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;
* @return The count of debugUrls.
*/
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;
* @param index The index of the element to return.
* @return The debugUrls at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the debugUrls at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The debugUrls to set.
* @return This builder for chaining.
*/
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;
* @param value The debugUrls to add.
* @return This builder for chaining.
*/
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;
* @param values The debugUrls to add.
* @return This builder for chaining.
*/
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.
*
* 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;
* @param value The bytes of the debugUrls to add.
* @return This builder for chaining.
*/
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.
*