"vscode:/vscode.git/clone" did not exist on "97e0ef4db421fa7af79e04df5f3f729dd90a58eb"
Commit 496203d8 authored by rusty1s's avatar rusty1s
Browse files

linting

parent 98ecdbed
......@@ -112,7 +112,7 @@ Transposes dimensions 0 and 1 of a sparse matrix.
* **value** *(Tensor)* - The value tensor of sparse matrix.
* **m** *(int)* - The first dimension of corresponding dense matrix.
* **n** *(int)* - The second dimension of corresponding dense matrix.
* **coalesce** *(bool, optional)* - To return coalesced index and value or not (default: `True`)
* **coalesced** *(bool, optional)* - If set to `False`, will not coalesce the output (default: `True`)
### Returns
......
......@@ -17,8 +17,8 @@ def spspmm(indexA, valueA, indexB, valueB, m, k, n):
indexB (:class:`LongTensor`): The index tensor of second sparse matrix.
valueB (:class:`Tensor`): The value tensor of second sparse matrix.
m (int): The first dimension of first corresponding dense matrix.
k (int): The second dimension of first corresponding dense matrix and first
dimension of second corresponding dense matrix.
k (int): The second dimension of first corresponding dense matrix and
first dimension of second corresponding dense matrix.
n (int): The second dimension of second corresponding dense matrix.
:rtype: (:class:`LongTensor`, :class:`Tensor`)
......
......@@ -2,7 +2,7 @@ import torch
from torch_sparse import to_scipy, from_scipy, coalesce
def transpose(index, value, m, nm coalesce=True):
def transpose(index, value, m, n, coalesced=True):
"""Transposes dimensions 0 and 1 of a sparse tensor.
Args:
......@@ -10,7 +10,8 @@ def transpose(index, value, m, nm coalesce=True):
value (:class:`Tensor`): The value tensor of sparse matrix.
m (int): The first dimension of corresponding dense matrix.
n (int): The second dimension of corresponding dense matrix.
coalesce (bool, optional): To return coalesced index and value or not (default: :obj:`True`)
coalesced (bool, optional): If set to :obj:`False`, will not coalesce
the output (default: :obj:`True`)
:rtype: (:class:`LongTensor`, :class:`Tensor`)
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment