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
#include <chrono> | |
#include <iostream> | |
#include <vector> | |
#include <random> | |
#include <cstring> | |
#include <array> | |
#include <cblas.h> | |
#include <rknn_matmul_api.h> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#include <iostream> | |
#include <vector> | |
#include "tiny_dnn/tiny_dnn.h" | |
using namespace tiny_dnn; | |
using namespace tiny_dnn::activation; | |
using namespace tiny_dnn::layers; | |
int main() | |
{ |
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 CNN_USE_AVX //Enable the AVX backend for faster computing | |
#include "tiny_dnn/tiny_dnn.h" | |
using namespace tiny_dnn; | |
using namespace tiny_dnn::activation; | |
using namespace tiny_dnn::layers; | |
#include "AudioFile.h" | |
#include <vector> | |
#include <random> |
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
#include <string> | |
#include <vector> | |
#include <functional> | |
#include <iostream> | |
#include <optional> | |
#include <cassert> | |
#include <unordered_set> | |
#include <cppcoro/generator.hpp> | |
#include <cppcoro/task.hpp> | |
#include <cppcoro/sync_wait.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
// Using SFML as out audio loader and player | |
#include <SFML/Audio.hpp> | |
// The standard headers we need | |
#include <iostream> | |
#include <thread> | |
#include <chrono> | |
#include <stdexcept> | |
#include <memory> | |
#include <cassert> |
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
#include <cxxabi.h> | |
#include <iostream> | |
void demangle_name(const std::string& mangled_name) | |
{ | |
std::size_t len = 0; | |
int status = 0; | |
auto name = __cxxabiv1::__cxa_demangle(mangled_name.c_str(), nullptr, &len, &status); | |
if (status == 0) | |
{ |
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
import gym | |
from etaler import et | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
def running_mean(x, N): | |
cumsum = np.cumsum(np.insert(x, 0, 0)) | |
return (cumsum[N:] - cumsum[:-N]) / float(N) |
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
#include "crypto.hpp" | |
#include <regex> | |
#include <bsd/stdlib.h> | |
#include <botan/argon2.h> | |
#include <botan/system_rng.h> | |
static Botan::System_RNG rng; | |
uint32_t secureRandom(uint32_t lower, uint32_t upper) |
NewerOlder