ASCEND_TIMESTAMP

Function

Constant of a collection name, which is invoked as a key during TensorFlow graph construction to set whether to enable timestamp for a dataset.

Example

1
2
from mx_rec.constants.constants import ASCEND_TIMESTAMP
tf.compat.v1.add_to_collection(ASCEND_TIMESTAMP, batch["timestamp"]) # batch is the iterator object of the dataset.