You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code, the scale is set to scalar_type(1/2) when the exponential value is used. This is to ensure that there is a compile-time conversion between the scalar type of the class and the scalar type of the exponential value. However, this can cause an issue because the value is computed at compile time with integer division, which result zero.
Position
You can find this issue in the code by searching for scalar_type(1/2). The issue is ever present in the exponential computation.
Description
In the code, the scale is set to
scalar_type(1/2)
when the exponential value is used. This is to ensure that there is a compile-time conversion between the scalar type of the class and the scalar type of the exponential value. However, this can cause an issue because the value is computed at compile time with integer division, which result zero.Position
You can find this issue in the code by searching for
scalar_type(1/2)
. The issue is ever present in the exponential computation.Small test
Result:
The text was updated successfully, but these errors were encountered: