No, the male frogs are being confused by chemical signals and attempting to mate with other males because they can no longer recognize females as female. Frogs don't have the cognitive capacity to get gender dysphoria.
I think the thing you're referring to is frogs developing wrong due to the chemicals, which would be so called 'intersex' not trans.