Closed mlxu995 closed 3 years ago
Hi @mlxu995
As you can see, self.relative_bias_table
is a nn.Parameter
initialized with zeros that can be learned through training. So it will not be a constant value once you train it.
Thank you very much! @chinhsuanwu
Hi, I noticed that the value of self.relative_bias_table is always all 0, then the following: relative_bias = self.relative_bias_table.gather( 0, self.relative_index.repeat(1, self.heads)) is actually meaningless (it is all 0)? Thanks!