EagerSession.Options

public static class EagerSession.Options

Public Methods

EagerSession.Options
async(boolean value)
Controls how operations dispatched are actually executed.
EagerSession
build()
Builds an eager session with the selected options.
EagerSession.Options
config(ConfigProto config)
Configures the session based on the data found in the provided configuration.
EagerSession.Options
devicePlacementPolicy(EagerSession.DevicePlacementPolicy value)
Controls how to act when we try to run an operation on a given device but some input tensors are not on that device.

Inherited Methods

Public Methods

public EagerSession.Options async (boolean value)

Controls how operations dispatched are actually executed.

When set to true, each operation are executed asynchronously (in which case some operations might return "non-ready" outputs). When set to false, all operations are executed synchronously.

Synchronous execution is used by default.

Parameters
value true for asynchronous execution, false for synchronous.

public EagerSession build ()

Builds an eager session with the selected options.

public EagerSession.Options config (ConfigProto config)

Configures the session based on the data found in the provided configuration.

Parameters
config a config protocol buffer
See Also

public EagerSession.Options devicePlacementPolicy (EagerSession.DevicePlacementPolicy value)

Controls how to act when we try to run an operation on a given device but some input tensors are not on that device.

SILENT is used by default.

Parameters
value policy to apply