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 <xtensor/xarray.hpp> | |
#include <xtensor/xrandom.hpp> | |
#include <xtensor/xio.hpp> | |
#include <xtensor/xindexview.hpp> | |
#include <xtensor-blas/xlinalg.hpp> | |
#include <iostream> | |
using namespace std; | |
void s1() |
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
__kernel void raycastStream(__global Ray* rays, __global BVHNode* bvh, __global Triangle* triangles, __global RayHit* hits) | |
{ | |
int workID = get_global_id(0); | |
Ray ray = rays[workID]; | |
int signs[3]; | |
signs[0] = ray.direction[0] < 0; | |
signs[1] = ray.direction[1] < 0; | |
signs[2] = ray.direction[2] < 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
__kernel void raycastStream(__global Ray* rays, __global BVHNode* bvh, __global Triangle* triangles, __global RayHit* hits) | |
{ | |
int workID = get_global_id(0); | |
Ray ray = rays[workID]; | |
int signs[3]; | |
signs[0] = ray.direction[0] < 0; | |
signs[1] = ray.direction[1] < 0; | |
signs[2] = ray.direction[2] < 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define OP_STATE 0 | |
#define NUM_STATE 1 | |
#define FBRAC_STATE 2 | |
#define BBRAC_STATE 3 | |
typedef void(*TransFunc)(int*, char); |
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 <iostream> | |
#include <algorithm> | |
#include <list> | |
#include <xtensor/xarray.hpp> | |
#include <xtensor/xio.hpp> | |
#include <hayai/hayai.hpp> | |
#include <hayai/hayai_main.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
template<typename VType> | |
void Switch(const VType& val) | |
{ | |
} | |
template<typename VType, typename Func> | |
void Switch(const VType& val, Func func) | |
{ | |
func(); | |
} |
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 <assimp/Importer.hpp> // C++ importer interface | |
#include <assimp/scene.h> // Output data structure | |
#include <assimp/postprocess.h> // Post processing flags | |
#include <iostream> | |
#include <string> | |
#include <fstream> | |
#include <vector> | |
using namespace std; |
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 <Athena/Athena.hpp> | |
#include <Athena/XtensorBackend.hpp> | |
#include <Athena/NNPACKBackend.hpp> | |
#include "mnist_reader.hpp" | |
//Need to use xtensor API due to incomplete Tensor implementation | |
#include <xtensor/xarray.hpp> | |
#include <iostream> |