Function torch::special::exp2#
Defined in File special.h
Function Documentation#
-
inline Tensor torch::special::exp2(const Tensor &self)#
Computes the base two exponential function of :attr:
input
, elementwise See https://pytorch.org/docs/main/special.html#torch.special.exp2.Example:
auto t = torch::randn(128, dtype=kDouble); torch::special::exp2(t);