【发布时间】:2017-12-31 14:27:55
【问题描述】:
如何将G_h1 = tf.nn.relu(tf.matmul(z, G_W1) + G_b1) 更改为leaky relu?我尝试使用max(value, 0,01*value) 循环张量,但我得到TypeError: Using a tf.Tensor as a Python bool is not allowed.
我也尝试在Tensorflow github上找到relu上的源代码,以便我可以将其修改为leaky relu,但我找不到它..
【问题讨论】:
标签: python tensorflow neural-network