Watch keynotes, product sessions, workshops, and more from Google I/O See playlist

CallableOptions.Builder

public static final class CallableOptions.Builder

 Defines a subgraph in another `GraphDef` as a set of feed points and nodes
 to be fetched or executed.
 Compare with the arguments to `Session::Run()`.
 
Protobuf type tensorflow.CallableOptions

Public Methods

CallableOptions.Builder
addAllFeed (Iterable<String> values)
 Tensors to be fed in the callable.
CallableOptions.Builder
addAllFetch (Iterable<String> values)
 Fetches.
CallableOptions.Builder
addAllTarget (Iterable<String> values)
 Target Nodes.
CallableOptions.Builder
addAllTensorConnection (Iterable<? extends TensorConnection > values)
 Tensors to be connected in the callable.
CallableOptions.Builder
addFeed (String value)
 Tensors to be fed in the callable.
CallableOptions.Builder
addFeedBytes (com.google.protobuf.ByteString value)
 Tensors to be fed in the callable.
CallableOptions.Builder
addFetch (String value)
 Fetches.
CallableOptions.Builder
addFetchBytes (com.google.protobuf.ByteString value)
 Fetches.
CallableOptions.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CallableOptions.Builder
addTarget (String value)
 Target Nodes.
CallableOptions.Builder
addTargetBytes (com.google.protobuf.ByteString value)
 Target Nodes.
CallableOptions.Builder
addTensorConnection (int index, TensorConnection value)
 Tensors to be connected in the callable.
CallableOptions.Builder
addTensorConnection (int index, TensorConnection.Builder builderForValue)
 Tensors to be connected in the callable.
CallableOptions.Builder
addTensorConnection ( TensorConnection value)
 Tensors to be connected in the callable.
CallableOptions.Builder
addTensorConnection ( TensorConnection.Builder builderForValue)
 Tensors to be connected in the callable.
TensorConnection.Builder
addTensorConnectionBuilder ()
 Tensors to be connected in the callable.
TensorConnection.Builder
addTensorConnectionBuilder (int index)
 Tensors to be connected in the callable.
CallableOptions
CallableOptions
CallableOptions.Builder
CallableOptions.Builder
clearFeed ()
 Tensors to be fed in the callable.
CallableOptions.Builder
CallableOptions.Builder
clearFetch ()
 Fetches.
CallableOptions.Builder
CallableOptions.Builder
clearFetchSkipSync ()
 By default, RunCallable() will synchronize the GPU stream before returning
 fetched tensors on a GPU device, to ensure that the values in those tensors
 have been produced.
CallableOptions.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
CallableOptions.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
CallableOptions.Builder
clearRunOptions ()
 Options that will be applied to each run.
CallableOptions.Builder
clearTarget ()
 Target Nodes.
CallableOptions.Builder
clearTensorConnection ()
 Tensors to be connected in the callable.
CallableOptions.Builder
boolean
containsFeedDevices (String key)
 The Tensor objects fed in the callable and fetched from the callable
 are expected to be backed by host (CPU) memory by default.
boolean
containsFetchDevices (String key)
map<string, string> fetch_devices = 7;
CallableOptions
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
String
getFeed (int index)
 Tensors to be fed in the callable.
com.google.protobuf.ByteString
getFeedBytes (int index)
 Tensors to be fed in the callable.
int
getFeedCount ()
 Tensors to be fed in the callable.
Map<String, String>
int
getFeedDevicesCount ()
 The Tensor objects fed in the callable and fetched from the callable
 are expected to be backed by host (CPU) memory by default.
Map<String, String>
getFeedDevicesMap ()
 The Tensor objects fed in the callable and fetched from the callable
 are expected to be backed by host (CPU) memory by default.
String
getFeedDevicesOrDefault (String key, String defaultValue)
 The Tensor objects fed in the callable and fetched from the callable
 are expected to be backed by host (CPU) memory by default.
String
getFeedDevicesOrThrow (String key)
 The Tensor objects fed in the callable and fetched from the callable
 are expected to be backed by host (CPU) memory by default.
com.google.protobuf.ProtocolStringList
getFeedList ()
 Tensors to be fed in the callable.
String
getFetch (int index)
 Fetches.
com.google.protobuf.ByteString
getFetchBytes (int index)
 Fetches.
int
getFetchCount ()
 Fetches.
Map<String, String>
int
getFetchDevicesCount ()
map<string, string> fetch_devices = 7;
Map<String, String>
getFetchDevicesMap ()
map<string, string> fetch_devices = 7;
String
getFetchDevicesOrDefault (String key, String defaultValue)
map<string, string> fetch_devices = 7;
String
getFetchDevicesOrThrow (String key)
map<string, string> fetch_devices = 7;
com.google.protobuf.ProtocolStringList
getFetchList ()
 Fetches.
boolean
getFetchSkipSync ()
 By default, RunCallable() will synchronize the GPU stream before returning
 fetched tensors on a GPU device, to ensure that the values in those tensors
 have been produced.
Map<String, String>
getMutableFeedDevices ()
Use alternate mutation accessors instead.
Map<String, String>
getMutableFetchDevices ()
Use alternate mutation accessors instead.
RunOptions
getRunOptions ()
 Options that will be applied to each run.
RunOptions.Builder
getRunOptionsBuilder ()
 Options that will be applied to each run.
RunOptionsOrBuilder
getRunOptionsOrBuilder ()
 Options that will be applied to each run.
String
getTarget (int index)
 Target Nodes.
com.google.protobuf.ByteString
getTargetBytes (int index)
 Target Nodes.
int
getTargetCount ()
 Target Nodes.
com.google.protobuf.ProtocolStringList
getTargetList ()
 Target Nodes.
TensorConnection
getTensorConnection (int index)
 Tensors to be connected in the callable.
TensorConnection.Builder
getTensorConnectionBuilder (int index)
 Tensors to be connected in the callable.
List< TensorConnection.Builder >
getTensorConnectionBuilderList ()
 Tensors to be connected in the callable.
int
getTensorConnectionCount ()
 Tensors to be connected in the callable.
List< TensorConnection >
getTensorConnectionList ()
 Tensors to be connected in the callable.
TensorConnectionOrBuilder
getTensorConnectionOrBuilder (int index)
 Tensors to be connected in the callable.
List<? extends TensorConnectionOrBuilder >
getTensorConnectionOrBuilderList ()
 Tensors to be connected in the callable.
boolean
hasRunOptions ()
 Options that will be applied to each run.
final boolean
CallableOptions.Builder
mergeFrom (com.google.protobuf.Message other)
CallableOptions.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CallableOptions.Builder
mergeRunOptions ( RunOptions value)
 Options that will be applied to each run.
final CallableOptions.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
CallableOptions.Builder
putAllFeedDevices (Map<String, String> values)
 The Tensor objects fed in the callable and fetched from the callable
 are expected to be backed by host (CPU) memory by default.
CallableOptions.Builder
putAllFetchDevices (Map<String, String> values)
map<string, string> fetch_devices = 7;
CallableOptions.Builder
putFeedDevices (String key, String value)
 The Tensor objects fed in the callable and fetched from the callable
 are expected to be backed by host (CPU) memory by default.
CallableOptions.Builder
putFetchDevices (String key, String value)
map<string, string> fetch_devices = 7;
CallableOptions.Builder
removeFeedDevices (String key)
 The Tensor objects fed in the callable and fetched from the callable
 are expected to be backed by host (CPU) memory by default.
CallableOptions.Builder
removeFetchDevices (String key)
map<string, string> fetch_devices = 7;
CallableOptions.Builder
removeTensorConnection (int index)
 Tensors to be connected in the callable.
CallableOptions.Builder
setFeed (int index, String value)
 Tensors to be fed in the callable.
CallableOptions.Builder
setFetch (int index, String value)
 Fetches.
CallableOptions.Builder
setFetchSkipSync (boolean value)
 By default, RunCallable() will synchronize the GPU stream before returning
 fetched tensors on a GPU device, to ensure that the values in those tensors
 have been produced.
CallableOptions.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CallableOptions.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CallableOptions.Builder
setRunOptions ( RunOptions.Builder builderForValue)
 Options that will be applied to each run.
CallableOptions.Builder
setRunOptions ( RunOptions value)
 Options that will be applied to each run.
CallableOptions.Builder </