C++实现Sigmod函数

static inline float sigmoid(float x)
{
    return static_cast<float>(1.f / (1.f + exp(-x)));
}
posted @ 2022-06-16 14:18  Truman001  阅读(794)  评论(0编辑  收藏  举报