12 #include <Eigen/CXX11/Tensor> 24 for (
int i = 0; i < 6; ++i) {
25 VERIFY_IS_APPROX(vec2(i), tanhf(vec1(i)));
36 for (
int i = 0; i < 6; ++i) {
37 VERIFY_IS_APPROX(vec2(i), 1.0
f / (1.0
f +
std::exp(-vec1(i))));
EIGEN_DEVICE_FUNC const ExpReturnType exp() const
static int f(const TensorMap< Tensor< int, 3 > > &tensor)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & setRandom()
void test_cxx11_tensor_math()
static void test_sigmoid()