Skip to content

Value Error at time 4:45:54 in part 1/2 video #316

Discussion options

You must be logged in to vote

Thanks to @AmanAdastra for answer to Issue opened by @jcr0269 ... Expanding dimensions of X and y fixed the issue:
X = tf.cast(tf.constant(X), dtype=tf.float32)
y = tf.cast(tf.constant(y), dtype=tf.float32)
X = tf.expand_dims(X,axis=1)
y = tf.expand_dims(y,axis=1)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrdbourke
Comment options

Answer selected by scottdstearns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants