title: InternalError: stream did not block host until done; was already in an error state
body: <p>stream did not block host until done; was already in an error state how to fix it
  using tensorflow keras</p>
  <pre><code>model.compile(
  optimizer=&quot;adam&quot;,
  loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
  metrics=['acc'])    
  model.fit(X_train_scaled, y_train, epochs=5)
  </code></pre>
  <p>this error appears</p>
  <p><a href="https://i.stack.imgur.com/XTU0e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XTU0e.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/zIq9F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zIq9F.png" alt="enter image description here" /></a></p>