어떻게 tf.layers.dense 에서 leaky 를 사용 합 니까?relu
1432 단어 tensorflow 학습
# this is wrong
tf.layers.Dense(units,activation='leaky_relu')
# right operation
import tensorflow as tf
from functools import partial
output = tf.layers.dense(input, n_units, activation=partial(tf.nn.leaky_relu, alpha=0.01))