def tensor_summary(name, x): try: summ = tf.summary.tensor_summary(name, x) except AttributeError: summ = tf.tensor_summary(name, x) return summ
def tensor_summary(name, x): try: summ = tf.summary.tensor_summary(name, x) except AttributeError: summ = tf.tensor_summary(name, x) return summ