I am reimplementing a text2speech project. I am facing a Function call stack : keras_scratch_graph error in decoder part. The network architecture is from D
I think it's a thing about the gpu. look at the traceback:
File "/Users/ydc/dl-npm/lib/python3.7/site-packages/tensorflow/python/eager/function.py", line 572, in __call__ return self._call_flat(args)
tf is calling on eager execution, which means that gpu will be used if the version is available. I had the same issue when I was testing a dense network:
inputs=Input(shape=(100,)
)
x=Dense(32, activation='relu')(inputs)
x=Dense(32, activation='relu')(x)
x=Dense(32, activation='relu')(x)
outputs=Dense(10, activation='softmax')(x)
model=Model(inputs=inputs, outputs=outputs)
model.compile(optimizer='adam', loss='sparse_categorical_crossentropy',
metrics=['accuracy'])
t=tf.zeros([1,100])
model.predict(t, steps=1, batch_size=1)
... and it gave a similar traceback, also linking to eager execution. Then when I disabled gpu using the following line:
tf.config.experimental.set_visible_devices([], 'GPU')
... the code ran just fine. See if this would help solve the issue. Btw, does colab even support gpu? I didn't even know.