@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 wrapping a new Timestamp operation.
|
Output<Double> |
ts() |
equals, hashCode, op, toString
public static Timestamp create(Scope scope)
scope
- current scopepublic Output<Double> asOutput()
Operand
Inputs 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 © 2022. All rights reserved.