怎么才能换G_h1 = tf.nn.relu(tf.matmul(z, G_W1) + G_b1)到漏水的relu?我试过使用张量来循环,max(value, 0,01*value)但是我得到了TypeError: Using a tf.Tensor as a Python bool is not allowed.
G_h1 = tf.nn.relu(tf.matmul(z, G_W1) + G_b1)
max(value, 0,01*value)
TypeError: Using a tf.Tensor as a Python bool is not allowed.
我也尝试在Tensorflow github上找到源代码,以便我可以修改它以泄漏relu但我找不到它..
python neural-network tensorflow
neural-network ×1
python ×1
tensorflow ×1