blob: d6dc24817e02894bf2c56d2c1dd6e2cf8a0e00b4 [file] [log] [blame]
#include <gtest/gtest.h>
#include <torch/torch.h>
#include <torch/special.h>
#include <test/cpp/api/support.h>
// Simple test that verifies the special namespace is registered properly
// properly in C++
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
TEST(SpecialTest, special) {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-magic-numbers)
auto t = torch::randn(128, torch::kDouble);
torch::special::gammaln(t);
}