'Creates a FeedForwardExpert.
Args:
hp: hyperparameters.  Call FeedForwardExpertParams() to create these.
name: a string.'

def __init__(self, hp, name):

    self._hp = hp
    hidden_layer_sizes = (hp.hidden_layer_sizes or [])
    num_layers = (1 + len(hidden_layer_sizes))
    layer_sizes = (([hp.input_size] + hidden_layer_sizes) + [hp.output_size])
    self._layer_sizes = layer_sizes
    self._w = []
    for layer in range(num_layers):
        shape = layer_sizes[layer:(layer + 2)]
        self._w.append(tf.get_variable(('%s_layer_%d' % (name, layer)), shape, hp.dtype, hp.initializer))
