The initialization of W & X works with both tf.Variable and tf.constant.
What is the correct way to go about?
The initialization of W & X works with both tf.Variable and tf.constant.
What is the correct way to go about?
For W
, a suitable choice is tf.Variable
as we want to change/update W
. For X
(input), tf.constant
is the best choice as we do not want our input data to change.