Skip to content

Instantly share code, notes, and snippets.

View sharnoff's full-sized avatar

Em Sharnoff sharnoff

View GitHub Profile
@sharnoff
sharnoff / segfault.py
Created September 11, 2020 07:06
Triggering code for tensorflow/tensorflow issue #43119
import tensorflow as tf
# These are the "givens" from the issue - essentially they're set to mimic
# the actual values that I ran into this issue with
ABSURDLY_LARGE_NUMBER = 2 * 10**17
YOUR_CSV_PATH = "temp-data.csv"
LABEL_COLUMN = "label"
INPUT_SIZE = 300
INPUT_COLUMNS = [ str(x) for x in range(INPUT_SIZE) ]