Closed MTCai closed 4 years ago
lens_logits = tf.nn.softmax( -(tf.abs(lens_reshape - self.options.avglen) + 1), -1)
To make softmax smoother which was inspired by Laplace smoothing.
lens_logits = tf.nn.softmax( -(tf.abs(lens_reshape - self.options.avglen) + 1), -1)