Skip to content

Instantly share code, notes, and snippets.

View parth-verma's full-sized avatar

Parth Verma parth-verma

  • San Francisco, California
View GitHub Profile
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
# USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
@parth-verma
parth-verma / XORnet.py
Last active October 1, 2020 13:31
XOR net in Tensorflow
import tensorflow as tf
import numpy as np
tf.set_random_seed(1)
def generate_train_data(batch_size=64):
indices = np.random.randint(4, size=batch_size)
XOR_X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
XOR_Y = np.array([[0], [1], [1], [0]])
@parth-verma
parth-verma / machine.js
Last active November 18, 2020 12:23
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions