@Operator public final class Timestamp extends PrimitiveOp implements Operand<Double>
Returns the timestamp as a `float64` for seconds since the Unix epoch.
Note: the timestamp is computed when the op is executed, not when it is added to the graph.
operation| Modifier and Type | Method and Description |
|---|---|
Output<Double> |
asOutput()
Returns the symbolic handle of a tensor.
|
static Timestamp |
create(Scope scope)
Factory method to create a class to wrap a new Timestamp operation to the graph.
|
Output<Double> |
ts() |
equals, hashCode, toStringpublic static Timestamp create(Scope scope)
scope - current graph scopepublic Output<Double> 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<Double>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.