Skip to content

Instantly share code, notes, and snippets.

$ python ./min_repro.py
/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
WARNING:tensorflow:From /usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py:198: retry (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.
Instructions for updating:
Use the retry module or similar alternatives.
loading model...
/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/keras/models.py:255: UserWarning: No training configuration found in save file: the model was *not* compiled. Compile it manually.
warnings.warn('No training configuration found in save file: '
@bileschi
bileschi / gist:fbbf5f5522db56ecf178d6551bdf74be
Created May 21, 2018 17:47
Jeremy Ellis 2d conv sample
<html>
<head>
</head>
<body>
<!-- <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.10.3"> </script> -->
<script src="./tf.js"> </script>
<input type="text" id="myAsk" size=40 value="1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0"><br>
<input id="myButton123" type="button" value="Convolutional Train and Test" onclick="
{ document.getElementById('myButton123').style.backgroundColor = 'red' // just to show something is happening // Generate some synthetic data for training.
@bileschi
bileschi / gist:9d1f0064c1266862c6a0ba49da136c38
Created May 8, 2018 12:25
Error from transpose of 1D tensor
1
2 precision highp float;
3 precision highp int;
4 varying vec2 resultUV;
5 const vec2 halfCR = vec2(0.5, 0.5);
6
7 bool isNaN(float val) {
8 float v1 = val * val;
9 float v2 = val * val;
10 return v1 == v2 ? false : true;