示例#1
0
文件: ops.py 项目: szuer2018/NNSC
def tensor_summary(name, x):
    try:
        summ = tf.summary.tensor_summary(name, x)
    except AttributeError:
        summ = tf.tensor_summary(name, x)
    return summ
示例#2
0
文件: ops.py 项目: cc-cherie/segan
def tensor_summary(name, x):
    try:
        summ = tf.summary.tensor_summary(name, x)
    except AttributeError:
        summ = tf.tensor_summary(name, x)
    return summ