import tensorflow as tf

    elif decoder.embedding_initializer == 'uniform' or (decoder.embedding_initializer is None
                                                        and decoder.initializer == 'uniform'):
        initializer = tf.random_uniform_initializer(minval=-weight_scale, maxval=weight_scale)
    else:
        initializer = tf.random_normal_initializer(stddev=weight_scale)

    with tf.device('/cpu:0'):
        embedding = get_variable('embedding_{}'.format(decoder.name), shape=embedding_shape, initializer=initializer)
