Пример #1
0
 def _projection(prev_state, prev_output, ctx_tensors):
     return maxout([prev_state, prev_output] + ctx_tensors,
                   maxout_size)
 def _projection(prev_state, prev_output, ctx_tensors, _):
     state_out_ctx = tf.concat([prev_state, prev_output] + ctx_tensors, 1)
     return maxout(state_out_ctx, maxout_size)
Пример #3
0
 def _projection(prev_state, prev_output, ctx_tensors, train_mode):
     state_out_ctx = tf.concat([prev_state, prev_output] + ctx_tensors, 1)
     return dropout(
         maxout(state_out_ctx, maxout_size),
         dropout_keep_prob, train_mode)