TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.timestamp

TensorFlow 1 version

Defined in generated file: python/ops/gen_logging_ops.py

Provides the time since epoch in seconds.

Aliases:

  • tf.compat.v1.timestamp
  • tf.compat.v2.timestamp
tf.timestamp(name=None)

Returns the timestamp as a float64 for seconds since the Unix epoch.

Args:

  • name: A name for the operation (optional).

Returns:

A Tensor of type float64.