• 大小: 24KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-01
  • 语言: C/C++
  • 标签: CNN  

资源简介

卷积神经网络的简单实现 开发语言:C++ 便宜环境:Ubuntu 16.04 依赖库eigen3

资源截图

代码片段和文件信息

/*
 * Activationlayer.cpp
 *
 *  Created on: Feb 8 2018
 *      Author: user
 */

#include “Activationlayer.h“

namespace DeepLearning {

Activationlayer::Activationlayer(layerType layerType)
    : layer(layerType){
    // TODO Auto-generated constructor stub

}

Activationlayer::~Activationlayer() {
    // TODO Auto-generated destructor stub
}

/*-----------------------------------------------------------------------------------
 * public interface
 *----------------------------------------------------------------------------------*/
int Activationlayer::Forward(const vector &input vector &output){

    if(input.empty()){
        return -1;
    }

    // save input data.
    this->m_input = input;

    this->m_output.clear();
    for(unsigned int i = 0; i < input.siz

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-02-10 02:32  hello_cnn-master\
     文件        2251  2018-02-10 02:32  hello_cnn-master\Activationlayer.cpp
     文件         993  2018-02-10 02:32  hello_cnn-master\Activationlayer.h
     文件         486  2018-02-10 02:32  hello_cnn-master\CMakeLists.txt
     文件        1870  2018-02-10 02:32  hello_cnn-master\Cifar.cpp
     文件         473  2018-02-10 02:32  hello_cnn-master\Cifar.h
     文件       12922  2018-02-10 02:32  hello_cnn-master\Convolutionlayer.cpp
     文件        2292  2018-02-10 02:32  hello_cnn-master\Convolutionlayer.h
     文件        1066  2018-02-10 02:32  hello_cnn-master\DebugPrint.h
     文件        7852  2018-02-10 02:32  hello_cnn-master\FullConnect.cpp
     文件        1441  2018-02-10 02:32  hello_cnn-master\FullConnect.h
     文件        3510  2018-02-10 02:32  hello_cnn-master\layer.cpp
     文件        1116  2018-02-10 02:32  hello_cnn-master\layer.h
     文件        3228  2018-02-10 02:32  hello_cnn-master\Minst.cpp
     文件         554  2018-02-10 02:32  hello_cnn-master\Minst.h
     文件        5320  2018-02-10 02:32  hello_cnn-master\Net.cpp
     文件        1444  2018-02-10 02:32  hello_cnn-master\Net.h
     文件        4510  2018-02-10 02:32  hello_cnn-master\Poolinglayer.cpp
     文件        1059  2018-02-10 02:32  hello_cnn-master\Poolinglayer.h
     文件         641  2018-02-10 02:32  hello_cnn-master\README.md
     文件        1131  2018-02-10 02:32  hello_cnn-master\Relulayer.cpp
     文件         564  2018-02-10 02:32  hello_cnn-master\Relulayer.h
     文件        1175  2018-02-10 02:32  hello_cnn-master\Sigmoidlayer.cpp
     文件         566  2018-02-10 02:32  hello_cnn-master\Sigmoidlayer.h
     文件        3627  2018-02-10 02:32  hello_cnn-master\Softmaxlayer.cpp
     文件        1174  2018-02-10 02:32  hello_cnn-master\Softmaxlayer.h
     文件        1117  2018-02-10 02:32  hello_cnn-master\Tanhlayer.cpp
     文件         545  2018-02-10 02:32  hello_cnn-master\Tanhlayer.h
     文件        4690  2018-02-10 02:32  hello_cnn-master\main.cpp
     文件         629  2018-02-10 02:32  hello_cnn-master\readme

评论

共有 条评论