Skip to content

Instantly share code, notes, and snippets.

View sabhiram's full-sized avatar

Shaba Abhiram sabhiram

View GitHub Profile
@sabhiram
sabhiram / py_func_failure.py
Created July 20, 2018 00:48
A very simple tensorflow example that demonstrates bad type conversion during py_func results processing
import tensorflow as tf
def test_func(x):
""" Builds a list of ints with length `x`.
"""
return [i for i in range(x)],
def main():
t0 = tf.constant(0, dtype=tf.int64)