Hi, I am trying to build a highway network using pytorch and I need to initialize my transform bias variable with value -1 and whose size will be equal to my network layer size. In tensorflow, we could do this using
b_T = tf.Variable(tf.constant(-1, shape=[size]), name="bias_transform").
How do I perform this in pytorch. I would be very grateful if anybody can provide an insight into this. Thanks,