@@ -63,15 +63,15 @@ For scattering, any operation of [`torch_scatter`](https://github.com/rusty1s/py
63
63
64
64
* ** index** * (LongTensor)* - The index tensor of sparse matrix.
65
65
* ** value** * (Tensor)* - The value tensor of sparse matrix.
66
- * ** m** * (int)* - First dimension of sparse matrix.
67
- * ** n** * (int)* - Second dimension of sparse matrix.
68
- * ** op** * (string, optional)* - Scatter operation to use. (default: ` "add" ` )
69
- * ** fill_value** * (int, optional)* - Initial fill value of scatter operation. (default: ` 0 ` )
66
+ * ** m** * (int)* - The first dimension of sparse matrix.
67
+ * ** n** * (int)* - The second dimension of sparse matrix.
68
+ * ** op** * (string, optional)* - The scatter operation to use. (default: ` "add" ` )
69
+ * ** fill_value** * (int, optional)* - The initial fill value of scatter operation. (default: ` 0 ` )
70
70
71
71
### Returns
72
72
73
- * ** index** * (LongTensor)* - Coalesced index tensor of sparse matrix.
74
- * ** value** * (Tensor)* - Coalesced value tensor of sparse matrix.
73
+ * ** index** * (LongTensor)* - The coalesced index tensor of sparse matrix.
74
+ * ** value** * (Tensor)* - The coalesced value tensor of sparse matrix.
75
75
76
76
### Example
77
77
@@ -105,13 +105,13 @@ Transposes dimensions 0 and 1 of a sparse matrix.
105
105
106
106
* ** index** * (LongTensor)* - The index tensor of sparse matrix.
107
107
* ** value** * (Tensor)* - The value tensor of sparse matrix.
108
- * ** m** * (int)* - First dimension of sparse matrix.
109
- * ** n** * (int)* - Second dimension of sparse matrix.
108
+ * ** m** * (int)* - The first dimension of sparse matrix.
109
+ * ** n** * (int)* - The second dimension of sparse matrix.
110
110
111
111
### Returns
112
112
113
- * ** index** * (LongTensor)* - Transposed index tensor of sparse matrix.
114
- * ** value** * (Tensor)* - Transposed value tensor of sparse matrix.
113
+ * ** index** * (LongTensor)* - The transposed index tensor of sparse matrix.
114
+ * ** value** * (Tensor)* - The transposed value tensor of sparse matrix.
115
115
116
116
### Example
117
117
@@ -122,7 +122,7 @@ index = torch.tensor([[1, 0, 1, 0, 2, 1],
122
122
[0 , 1 , 1 , 1 , 0 , 0 ]])
123
123
value = torch.tensor([[1 , 2 ], [2 , 3 ], [3 , 4 ], [4 , 5 ], [5 , 6 ], [6 , 7 ]])
124
124
125
- index, value = transpose(index, value, m = 3 , n = 2 )
125
+ index, value = transpose(index, value, 3 , 2 )
126
126
```
127
127
128
128
```
@@ -148,12 +148,12 @@ Matrix product of a sparse matrix with a dense matrix.
148
148
149
149
* ** index** * (LongTensor)* - The index tensor of sparse matrix.
150
150
* ** value** * (Tensor)* - The value tensor of sparse matrix.
151
- * ** m** * (int)* - First dimension of sparse matrix.
152
- * ** matrix** * (int )* - Dense matrix.
151
+ * ** m** * (int)* - The first dimension of sparse matrix.
152
+ * ** matrix** * (Tensor )* - The dense matrix.
153
153
154
154
### Returns
155
155
156
- * ** out** * (Tensor)* - Dense output matrix.
156
+ * ** out** * (Tensor)* - The dense output matrix.
157
157
158
158
### Example
159
159
@@ -190,14 +190,14 @@ Both input sparse matrices need to be **coalesced**.
190
190
* ** valueA** * (Tensor)* - The value tensor of first sparse matrix.
191
191
* ** indexB** * (LongTensor)* - The index tensor of second sparse matrix.
192
192
* ** valueB** * (Tensor)* - The value tensor of second sparse matrix.
193
- * ** m** * (int)* - First dimension of first sparse matrix.
194
- * ** k** * (int)* - Second dimension of first sparse matrix and first dimension of second sparse matrix.
195
- * ** n** * (int)* - Second dimension of second sparse matrix.
193
+ * ** m** * (int)* - The first dimension of first sparse matrix.
194
+ * ** k** * (int)* - The second dimension of first sparse matrix and first dimension of second sparse matrix.
195
+ * ** n** * (int)* - The second dimension of second sparse matrix.
196
196
197
197
### Returns
198
198
199
- * ** index** * (LongTensor)* - Output index tensor of sparse matrix.
200
- * ** value** * (Tensor)* - Output value tensor of sparse matrix.
199
+ * ** index** * (LongTensor)* - The output index tensor of sparse matrix.
200
+ * ** value** * (Tensor)* - The output value tensor of sparse matrix.
201
201
202
202
### Example
203
203
0 commit comments