This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if defined(__unix__) || defined(__unix) | |
#include <time.h> // clock_gettime() | |
#include <sys/time.h> // timeval, gettimeofday() | |
#include <unistd.h> // flags like _POSIX_VERSION | |
#elif defined(__MACH__) && defined(__APPLE__) | |
#include <mach/mach_time.h> // mach_timebase_info, | |
// mach_absolute_time() | |
#elif defined(_WIN32) | |
#include <windows.h> //GetSystemTimeAsFileTime(), | |
// QueryPerformanceFrequency(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | |
# Linking against libc++ instead of the GNU libstdc++ on OSX. | |
if(APPLE) | |
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lm") | |
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} | |
-stdlib=libc++ -lm") | |
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} | |
-stdlib=libc++ -lm") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") | |
else(APPLE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name default_server; | |
root /home/marcus/src/nn-demos; | |
index index.html; | |
location /mnist { | |
index index.html; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the files we need to compile | |
# Anything not in this list will not be compiled into MLPACK. | |
set(SOURCES | |
rnn.hpp | |
ffnn.hpp | |
cnn.hpp | |
network_traits.hpp | |
) | |
# Add directory name to sources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the files we need to compile | |
# Anything not in this list will not be compiled into MLPACK. | |
set(SOURCES | |
identity_function.hpp | |
logistic_function.hpp | |
softsign_function.hpp | |
tanh_function.hpp | |
rectifier_function.hpp | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the files we need to compile | |
# Anything not in this list will not be compiled into MLPACK. | |
set(SOURCES | |
full_connection.hpp | |
self_connection.hpp | |
fullself_connection.hpp | |
connection_traits.hpp | |
conv_connection.hpp | |
pooling_connection.hpp | |
bias_connection.hpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the files we need to compile | |
# Anything not in this list will not be compiled into MLPACK. | |
set(SOURCES | |
border_modes.hpp | |
naive_convolution.hpp | |
fft_convolution.hpp | |
svd_convolution.hpp | |
) | |
# Add directory name to sources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the files we need to compile | |
# Anything not in this list will not be compiled into MLPACK. | |
set(SOURCES | |
random_init.hpp | |
oivs_init.hpp | |
kathirvalavakumar_subavathi_init.hpp | |
nguyen_widrow_init.hpp | |
zero_init.hpp | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the files we need to compile | |
# Anything not in this list will not be compiled into MLPACK. | |
set(SOURCES | |
layer_traits.hpp | |
neuron_layer.hpp | |
bias_layer.hpp | |
dropout_layer.hpp | |
multiclass_classification_layer.hpp | |
binary_classification_layer.hpp | |
lstm_layer.hpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the files we need to compile | |
# Anything not in this list will not be compiled into MLPACK. | |
set(SOURCES | |
ada_delta.hpp | |
steepest_descent.hpp | |
rpropp.hpp | |
rpropm.hpp | |
irpropp.hpp | |
irpropm.hpp | |
rmsprop.hpp |
OlderNewer