contrib.keras.backend.in_train_phase

tf.contrib.keras.backend.in_train_phase

tf.contrib.keras.backend.in_train_phase

in_train_phase(
    x,
    alt,
    training=None
)

Defined in tensorflow/contrib/keras/python/keras/backend.py.

Selects x in train phase, and alt otherwise.

Note that alt should have the same shape as x.

Arguments:

登录查看完整内容