print(n_transformed.cdf(-2.1047876)) ## Gives NaN as the output
print(n_transformed.cdf(2.104786)) ## 0.89999
print(n_transformed.prob(-2)) ## gives NaN
print(n_transformed.prob(2)) ## 0.037879337
#################################
Ideally, if the quantiles are correctly computed, we expect the corresponding the inverse i.e. cdfs also be computed correctly; however, it seems that specifically for negative numbers it gives NaN as the output. Similarly, for the density of computation, for positive inputs, the density is correctly computed; however, for negative inputs, it gives NaN as the output.
Exploring further, I think it is due to the tf.math.pow function, which is used. Specifically,
it is due to the fact that tf.math.pow gives NaN for all negative numbers raised to fractional numbers - e.g. tf.math.pow(-8.0, 1.0/ 3.0) gives NaN
I am not sure where to report this issue. Kindly let me know if there is a way to circumvent this issue to make my reproducible example work.
Thanks in advance.