2019年9月7日

Calling tensorflow maxout in Keras

Since maxoutdense has been deprecated in Keras, we may call it through Keras Lambda layer, e.g.:

import tensorflow as tf
maxout = Lambda(lambda x: tf.contrib.layers.maxout(x, num_units=768), output_shape=None, mask=None, arguments=None, name='Maxout')(dropout)

0 comment(s):

張貼留言