refactor(optimizer): use optimizer_cls_and_kwargs
for custom optim
#2012
+245
−205
optimizer_cls_and_kwargs
for custom optim
#2012