I need to use nn.Sigmoid(), but I need sigmoid growth when the number is greater than x, not zero.
Thanks a lot.
Would adding or subtracting the desired constant to the input tensor work?
You would then calculate sigmoid(input-x)
, which will move the function on the x-axis.
1 Like