Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Can we set default dimension for gradient tensor?

Open kuke opened this issue 9 years ago • 0 comments

  1. In most case, the dimension of one tensor's gradient should be consistent with the tensor itself. If it is not, we can resize it explicitly.

  2. It would bring convience in operators' implementing. Take reshape_op for example, if the dimension of d_in has been known in advance, there is no need to write a gradient compute kernel, but can use forward op with NetOp instead.

kuke avatar Sep 18 '17 02:09 kuke