集合名常量,在tensorflow构建图时作为key调用,用于设定数据集是否启用时间戳。
1 2
from mx_rec.constants.constants import ASCEND_TIMESTAMP tf.compat.v1.add_to_collection(ASCEND_TIMESTAMP, batch["timestamp"]) #batch为数据集的迭代器对象