默认act = None, 但实际如果是这样不设置的话会出错,应该和其他一样默认 tf.identity,或者不添加就 if act is None: act = tf.identity