How to define bias with a given size and values?

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,

I can’t really answer that but I am trying to do the same thing and have no idea how. If you found out in the mean time, please also write.