Skip to content

Instantly share code, notes, and snippets.

View waleedka's full-sized avatar

Waleed Abdulla waleedka

View GitHub Profile
# Create a graph to hold the model.
graph = tf.Graph()
# Create model in the graph.
with graph.as_default():
# Placeholders for inputs and labels.
images_ph = tf.placeholder(tf.float32, [None, 32, 32, 3])
labels_ph = tf.placeholder(tf.int32, [None])
# Flatten input from: [None, height, width, channels]
@waleedka
waleedka / primer.js
Created April 18, 2011 01:28
A simple lib to handle AJAX, dialogs, and forms
!function() {
var doc = document,
htm = doc.documentElement,
lct = null, // last click target
nearest = function(elm, tag) {
while (elm && elm.nodeName != tag) {
elm = elm.parentNode;
}
return elm;
};