nfnets-keras icon indicating copy to clipboard operation
nfnets-keras copied to clipboard

How to use SGD_AGC class ??

Open edwardcho opened this issue 3 years ago • 1 comments

Hell Sir.

I tried your code but I met some error.

This is my code.

    optimizer = SGD_AGC(lr=0.01)

Error :

   TypeError: __init__() missing 1 required positional argument: 'params'

So I checked your code.

class SGD_AGC(Optimizer):
    ...
    def __init__(self, params, lr, ....):
    ...

I think that this is the style of optimizer of pytorch. How to use SGD_AGC class in keras.

Thanks..

edwardcho avatar Mar 26 '21 00:03 edwardcho

There's an answer from another user here: https://github.com/ypeleg/nfnets-keras/issues/7

Sicily-F avatar Apr 15 '21 19:04 Sicily-F