sparse_bw_api.yaml 2.0 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
- 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

22 23 24 25 26 27 28
- backward_api : create_sparse_coo_tensor_grad
  forward : create_sparse_coo_tensor(Tensor values, Tensor indices, IntArray dense_shape) -> Tensor(out@SparseCooTensor)
  args : (Tensor indices, Tensor out_grad)
  output : Tensor(values_grad@DenseTensor)
  kernel :
    func : sparse_coo_tensor_grad

29 30 31 32 33 34
- 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 已提交
35 36 37 38 39 40 41
- backward_api : sparse_maxpool_grad
  forward : sparse_maxpool(Tensor x, int[] kernel_sizes, int[] paddings, int[] dilations, int[] strides) -> Tensor(out@SparseCooTensor), Tensor(rulebook@DenseTensor)
  args : (Tensor x, Tensor rulebook, Tensor out, Tensor out_grad, int[] kernel_sizes)
  output : Tensor(x_grad@SparseCooTensor)
  kernel :
    func : sparse_maxpool_grad

Z
zhangkaihuo 已提交
42 43 44 45
- 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 已提交
46
  kernel :
Z
zhangkaihuo 已提交
47
    func : sparse_relu_grad