public static final class ResetRequest.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder> implements ResetRequestOrBuilder
Reset() allows misbehaving or slow sessions to be aborted and closed, and causes their resources eventually to be released. Reset() does not wait for the computations in old sessions to cease; it merely starts the process of tearing them down. However, if a new session is started after a Reset(), the new session is isolated from changes that old sessions (started prior to the Reset()) may continue to make to resources, provided all those resources are in containers listed in "containers". Old sessions may continue to have side-effects on resources not in containers listed in "containers", and thus may affect future sessions' results in ways that are hard to predict. Thus, if well-defined behavior is desired, is it recommended that all containers be listed in "containers". Similarly, if a device_filter is specified, results may be hard to predict.Protobuf type
tensorflow.ResetRequest
Modifier and Type | Method and Description |
---|---|
ResetRequest.Builder |
addAllContainer(Iterable<String> values)
A list of container names, which may be empty.
|
ResetRequest.Builder |
addAllDeviceFilters(Iterable<String> values)
When any filters are present, only devices that match the filters
will be reset.
|
ResetRequest.Builder |
addContainer(String value)
A list of container names, which may be empty.
|
ResetRequest.Builder |
addContainerBytes(org.nd4j.shade.protobuf.ByteString value)
A list of container names, which may be empty.
|
ResetRequest.Builder |
addDeviceFilters(String value)
When any filters are present, only devices that match the filters
will be reset.
|
ResetRequest.Builder |
addDeviceFiltersBytes(org.nd4j.shade.protobuf.ByteString value)
When any filters are present, only devices that match the filters
will be reset.
|
ResetRequest.Builder |
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ResetRequest |
build() |
ResetRequest |
buildPartial() |
ResetRequest.Builder |
clear() |
ResetRequest.Builder |
clearContainer()
A list of container names, which may be empty.
|
ResetRequest.Builder |
clearDeviceFilters()
When any filters are present, only devices that match the filters
will be reset.
|
ResetRequest.Builder |
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) |
ResetRequest.Builder |
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) |
ResetRequest.Builder |
clone() |
String |
getContainer(int index)
A list of container names, which may be empty.
|
org.nd4j.shade.protobuf.ByteString |
getContainerBytes(int index)
A list of container names, which may be empty.
|
int |
getContainerCount()
A list of container names, which may be empty.
|
org.nd4j.shade.protobuf.ProtocolStringList |
getContainerList()
A list of container names, which may be empty.
|
ResetRequest |
getDefaultInstanceForType() |
static org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptor() |
org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDeviceFilters(int index)
When any filters are present, only devices that match the filters
will be reset.
|
org.nd4j.shade.protobuf.ByteString |
getDeviceFiltersBytes(int index)
When any filters are present, only devices that match the filters
will be reset.
|
int |
getDeviceFiltersCount()
When any filters are present, only devices that match the filters
will be reset.
|
org.nd4j.shade.protobuf.ProtocolStringList |
getDeviceFiltersList()
When any filters are present, only devices that match the filters
will be reset.
|
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ResetRequest.Builder |
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
ResetRequest.Builder |
mergeFrom(org.nd4j.shade.protobuf.Message other) |
ResetRequest.Builder |
mergeFrom(ResetRequest other) |
ResetRequest.Builder |
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) |
ResetRequest.Builder |
setContainer(int index,
String value)
A list of container names, which may be empty.
|
ResetRequest.Builder |
setDeviceFilters(int index,
String value)
When any filters are present, only devices that match the filters
will be reset.
|
ResetRequest.Builder |
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ResetRequest.Builder |
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ResetRequest.Builder |
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public ResetRequest.Builder clear()
clear
in interface org.nd4j.shade.protobuf.Message.Builder
clear
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clear
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface org.nd4j.shade.protobuf.Message.Builder
getDescriptorForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
getDescriptorForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public ResetRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
public ResetRequest build()
build
in interface org.nd4j.shade.protobuf.Message.Builder
build
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public ResetRequest buildPartial()
buildPartial
in interface org.nd4j.shade.protobuf.Message.Builder
buildPartial
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public ResetRequest.Builder clone()
clone
in interface org.nd4j.shade.protobuf.Message.Builder
clone
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clone
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public ResetRequest.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface org.nd4j.shade.protobuf.Message.Builder
setField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public ResetRequest.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface org.nd4j.shade.protobuf.Message.Builder
clearField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public ResetRequest.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface org.nd4j.shade.protobuf.Message.Builder
clearOneof
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public ResetRequest.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
setRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public ResetRequest.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
addRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public ResetRequest.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ResetRequest.Builder>
public ResetRequest.Builder mergeFrom(ResetRequest other)
public final boolean isInitialized()
isInitialized
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
isInitialized
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public ResetRequest.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in interface org.nd4j.shade.protobuf.MessageLite.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ResetRequest.Builder>
IOException
public org.nd4j.shade.protobuf.ProtocolStringList getContainerList()
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;
getContainerList
in interface ResetRequestOrBuilder
public int getContainerCount()
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;
getContainerCount
in interface ResetRequestOrBuilder
public String getContainer(int index)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;
getContainer
in interface ResetRequestOrBuilder
public org.nd4j.shade.protobuf.ByteString getContainerBytes(int index)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;
getContainerBytes
in interface ResetRequestOrBuilder
public ResetRequest.Builder setContainer(int index, String value)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;
public ResetRequest.Builder addContainer(String value)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;
public ResetRequest.Builder addAllContainer(Iterable<String> values)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;
public ResetRequest.Builder clearContainer()
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;
public ResetRequest.Builder addContainerBytes(org.nd4j.shade.protobuf.ByteString value)
A list of container names, which may be empty. If 'container' is not empty, releases resoures in the given containers in all devices. If 'container' is empty, releases resources in the default container in all devices.
repeated string container = 1;
public org.nd4j.shade.protobuf.ProtocolStringList getDeviceFiltersList()
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;
getDeviceFiltersList
in interface ResetRequestOrBuilder
public int getDeviceFiltersCount()
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;
getDeviceFiltersCount
in interface ResetRequestOrBuilder
public String getDeviceFilters(int index)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;
getDeviceFilters
in interface ResetRequestOrBuilder
public org.nd4j.shade.protobuf.ByteString getDeviceFiltersBytes(int index)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;
getDeviceFiltersBytes
in interface ResetRequestOrBuilder
public ResetRequest.Builder setDeviceFilters(int index, String value)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;
public ResetRequest.Builder addDeviceFilters(String value)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;
public ResetRequest.Builder addAllDeviceFilters(Iterable<String> values)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;
public ResetRequest.Builder clearDeviceFilters()
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;
public ResetRequest.Builder addDeviceFiltersBytes(org.nd4j.shade.protobuf.ByteString value)
When any filters are present, only devices that match the filters will be reset. Each filter can be partially specified, e.g. "/job:ps" "/job:worker/replica:3", etc.
repeated string device_filters = 2;
public final ResetRequest.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
setUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
public final ResetRequest.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
mergeUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResetRequest.Builder>
Copyright © 2020. All rights reserved.