版权声明:本博客所有文章版权归博主刘兴所有,转载请注意来源 https://blog.csdn.net/AI_LX/article/details/89669787
tf.no_op
tf.no_op(name=None)
什么都不做,仅做为点位符使用控制边界。
参数:
name: 操作名字(可选)
Returns:
创建的操作
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import tensorflow as tf
x = tf.random_normal([3,5],mean=100)
y1=x+x
y2=tf.no_op()
z=tf.group([y1,y2])
sess=tf.Session()
with sess:
sess.run(z)