I build a custom layer in a traditional CNN, However, when I try to train the new neural network model, the error is throw out:
AttributeError: ‘NoneType’ object has no attribute ‘data’
I guess it cause by my custom layer and it may set up some weight is not trainable?
I am not quite sure what is going on. I really appreciate that someone can provide some suggestions.
Thank you very much