How can I initialize bias with a pre-defined vector (no constant or random)? For example, I would like to spread up the vector in the range [-1, 1]. Something likee this:
tf.linspace(-1, 1 , shape, name="linspace")
what I have done so far, that it is not working, is:
def b_init(shape):
return tf.keras.initializers.Constant(tf.linspace(-1, 1 , shape, name="linspace"))
I am looking for something I can call in the same way that the predefined classes, for example:
b_initializer = tf.keras.initializers.HeNormal(seed=initialization_number)