sparse_bw_api.yaml 1.3 KB
Newer Older
1
- backward_api : conv3d_grad
Z
zhangkaihuo 已提交
2 3
  forward : conv3d (Tensor x, Tensor kernel, int[] paddings, int[] dilations, int[] strides, int groups, bool subm) -> Tensor(out@SparseCooTensor), Tensor(rulebook@DenseTensor)
  args : (Tensor x, Tensor kernel, Tensor rulebook, Tensor out_grad, int[] paddings, int[] dilations, int[] strides, int groups, bool subm)
4
  output : Tensor(x_grad@SparseCooTensor), Tensor(kernel_grad@DenseTensor)
5
  kernel :
Z
zhangkaihuo 已提交
6
    func : sparse_conv3d_grad
Z
zhangkaihuo 已提交
7

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
- backward_api : coo_to_dense_grad
  forward : coo_to_dense(Tensor x) -> Tensor(out@DenseTensor)
  args : (Tensor x, Tensor out_grad)
  output : Tensor(x_grad@SparseCooTensor)
  kernel :
    func : sparse_coo_to_dense_grad

- backward_api : coo_values_grad
  forward : coo_values(Tensor x) -> Tensor(out@DenseTensor)
  args : (Tensor x, Tensor out_grad)
  output : Tensor(x_grad@SparseCooTensor)
  kernel :
    func : coo_values_grad

- backward_api : dense_to_coo_grad
  forward : dense_to_coo(Tensor x, int64_t sparse_dim) -> Tensor(out@SparseCooTensor)
  args : (Tensor out_grad)
  output : Tensor(x_grad@DenseTensor)
  invoke : to_dense_impl(out_grad)

Z
zhangkaihuo 已提交
28 29 30 31
- backward_api : sparse_relu_grad
  forward : sparse_relu(Tensor x) -> Tensor(out@SparseCooTensor)
  args : (Tensor x, Tensor out_grad)
  output : Tensor(x_grad@SparseCooTensor)
Z
zyfncg 已提交
32
  kernel :
Z
zhangkaihuo 已提交
33
    func : sparse_relu_grad