Skip to content

Instantly share code, notes, and snippets.

View diggerdu's full-sized avatar
🍃
May you find your worth in the waking world

Xingjian Du diggerdu

🍃
May you find your worth in the waking world
View GitHub Profile
./configure --enable-threads --enable-openmp --disable-fortran --enable-avx --enable-avx2 --enable-avx-128-fma
# Working example for my blog post at:
# https://danijar.github.io/structuring-your-tensorflow-models
import functools
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
def doublewrap(function):
"""
A decorator decorator, allowing to use the decorator to be used without
@diggerdu
diggerdu / network.cpp
Created November 28, 2016 10:19
lai lone
#include "network_pre.h"
LayerInfo::LayerInfo::LayerInfo(double (*activation_function )(double sum), double NumNode)
{
activate = activation_function;
numnodes = NumNode;
};
@diggerdu
diggerdu / network.cpp
Created November 28, 2016 10:18
lai lone
#include "network_pre.h"
LayerInfo::LayerInfo::LayerInfo(double (*activation_function )(double sum), double NumNode)
{
activate = activation_function;
numnodes = NumNode;
};
@diggerdu
diggerdu / arxiv2kindle.ipynb
Created September 11, 2016 10:34 — forked from bshillingford/arxiv2kindle.ipynb
arxiv2kindle: recompiles an arxiv paper for kindle-sized screens, and sends it to your wifi-enabled kindle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.