Change `GetAttr` to `Attr` in `OperatorBase`/`InferShapeContext`
Created by: reyoung
In OperatorBase
and InferShapeContext
, two kinds of API are mixed together. They are
-
Input
,Output
GetAttr
So we should change it either GetInput
, GetOutput
or Attr
. Since Attr
is simpler than GetAttr
, so maybe Attr
is better.