How to fix “ResourceExhaustedError: OOM when allocating tensor”

前端 未结 3 1842
独厮守ぢ
独厮守ぢ 2021-01-03 01:31

I wanna make a model with multiple inputs. So, I try to build a model like this.

# define two sets of inputs
inputA = Input(shape=(32,64,1))
inputB = Input(sh         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-03 02:20

    Happened to me as well.

    You can try reducing trainable parameters by using some form of Transfer Learning - try freezing the initial few layers and use lower batch sizes.

提交回复
热议问题