Add Cost Inference for AdaGrad and RowWiseSparseAdagrad
Summary: Add cost inference for AdaGrad and RowWiseSparseAdagrad
Test Plan:
Ran `buck test caffe2/caffe2/python/operator_test:adagrad_test`
Result: https://our.intern.facebook.com/intern/testinfra/testrun/5629499567799494
Reviewed By: bwasti
Differential Revision: D23442607
fbshipit-source-id: 67800fb82475696512ad19a43067774247f8b230