SyncDevice

public final class SyncDevice

Synchronizes the device this op is run on.

Only GPU ops are asynchrous in TensorFlow, and so this only has an effect when run on GPUs. On GPUs, this op synchronizes the GPU's compute stream.

Public Methods

static SyncDevice
create(Scope scope)
Factory method to create a class wrapping a new SyncDevice operation.

Inherited Methods

org.tensorflow.op.PrimitiveOp
final boolean
equals(Object obj)
final int
Operation
op()
Returns the underlying Operation
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Methods

public static SyncDevice create (Scope scope)

Factory method to create a class wrapping a new SyncDevice operation.

Parameters
scope current scope
Returns
  • a new instance of SyncDevice