Unify the attribute and the input for some operators
Created by: reyoung
We use attributes to represent some configuration that will not be changed and inputs for data, activations and parameters in a neural network. How about a configuration may be altered but usually will not be changed?
We need to change the attributes of these operators to their inputs, and use fill_op
to fill the attributes in startup_program
at the most time.
The operators are:
- FillConstant/FillConstantBatchSizeLike. We can remove
FillConstantBatchSizeLike
by making theshape
ofFillConstant
as an input. - Crop. Users can randomly crop an input image. It is a common way in data argumentation.