public final class WorkerHeartbeat extends PrimitiveOp implements Operand<String>
Heartbeats may be sent periodically to indicate the coordinator is still active, to retrieve the current worker status and to expedite shutdown when necessary.
operation| Modifier and Type | Method and Description |
|---|---|
Output<String> |
asOutput()
Returns the symbolic handle of a tensor.
|
static WorkerHeartbeat |
create(Scope scope,
Operand<String> request)
Factory method to create a class wrapping a new WorkerHeartbeat operation.
|
Output<String> |
response()
A string tensor containing a serialized WorkerHeartbeatResponse
|
equals, hashCode, op, toStringpublic static WorkerHeartbeat create(Scope scope, Operand<String> request)
scope - current scoperequest - A string tensor containing a serialized WorkerHeartbeatRequestpublic Output<String> response()
public Output<String> asOutput()
OperandInputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput in interface Operand<String>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.