“Could not interpret optimizer identifier” error in Keras

后端 未结 14 1461
别跟我提以往
别跟我提以往 2021-02-03 19:47

I got this error when I tried to modify the learning rate parameter of SGD optimizer in Keras. Did I miss something in my codes or my Keras was not installed properly?

14条回答
  •  说谎
    说谎 (楼主)
    2021-02-03 20:08

    I have misplaced parenthesis and got this error,

    Initially it was

    x=Conv2D(filters[0],(3,3),use_bias=False,padding="same",kernel_regularizer=l2(reg),x))
    

    The corrected version was

    x=Conv2D(filters[0],(3,3),use_bias=False,padding="same",kernel_regularizer=l2(reg))(x)
    

提交回复
热议问题