PR types

New features

PR changes

APIs

Describe

When computing the tensor's backward, the initial grad_tensor is dafault set as paddle.ones. This PR add new kwargs grad_tensor for user to self define the staring grad. If the grad_tensor not set, use the default value which is paddle.ones.

Doc preview
image

image