Created
February 27, 2018 21:20
-
-
Save skeggse/1da719766772da217451a64fc20b1983 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
dataset = tf.data.Dataset.from_generator(lambda: None, tf.float32) | |
# raises no errors | |
dataset.map(lambda i: (i, tf.zeros(tf.float32))) | |
zeros = tf.zeros(tf.float32) | |
# raises KeyError: 'zeros:0' | |
dataset.map(lambda i: (i, zeros)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment