Function call stack: keras_scratch_graph Error

前端 未结 7 640
傲寒
傲寒 2021-01-02 01:57

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

7条回答
  •  误落风尘
    2021-01-02 02:32

    If you use Tensorflow-GPU, then add:

    physical_devices = tf.config.experimental.list_physical_devices('GPU')
    print("physical_devices-------------", len(physical_devices))
    tf.config.experimental.set_memory_growth(physical_devices[0], True)
    

    In addition, you can reduce your batch_size or change another computer or cloud services, like google colab, amazon cloud to run your codes because I think this is because the limitation of memory.

提交回复
热议问题