Hi
I am trying to build a sequential model as mentioned in text classification example. Facing issues with below sample code - only in windows. same code working fine in Ubuntu linux.
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras import losses
model = tf.keras.Sequential([
layers.Embedding(10000, 16),
layers.Dropout(0.2),
layers.GlobalAveragePooling1D(),
layers.Dropout(0.2),
layers.Dense(1)])
model.summary()
Total params: 0 (0.00 B)
Trainable params: 0 (0.00 B)
Non-trainable params: 0 (0.00 B)
windows
* tensorflow version 2.16.0rc0
* Python version 3.12.2
Ubuntu
* tensorflow 2.13.1
* Python version 3.10.12