Warning: This API is deprecated and will be removed in a future version of TensorFlow after the replacement is stable.

Rpc.Options

public static class Rpc.Options

Optional attributes for Rpc

Public Methods

Rpc.Options
failFast(Boolean failFast)
Rpc.Options
protocol(String protocol)
Rpc.Options
timeoutInMs(Long timeoutInMs)

Inherited Methods

Public Methods

public Rpc.Options failFast (Boolean failFast)

Parameters
failFast `boolean`. If `true` (default), then failures to connect (i.e., the server does not immediately respond) cause an RPC failure.

public Rpc.Options protocol (String protocol)

Parameters
protocol RPC protocol to use. Empty string means use the default protocol. Options include 'grpc'.

public Rpc.Options timeoutInMs (Long timeoutInMs)

Parameters
timeoutInMs `int`. If `0` (default), then the kernel will run the RPC request and only time out if the RPC deadline passes or the session times out. If this value is greater than `0`, then the op will raise an exception if the RPC takes longer than `timeout_in_ms`.