"...text-generation-inference.git" did not exist on "7fbfbb0dc5d9f928ee4c496a04bff4a0eca8a9c8"
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. ...@@ -112,7 +112,7 @@ Transposes dimensions 0 and 1 of a sparse matrix.
* **value** *(Tensor)* - The value tensor of sparse matrix. * **value** *(Tensor)* - The value tensor of sparse matrix.
* **m** *(int)* - The first dimension of corresponding dense matrix. * **m** *(int)* - The first dimension of corresponding dense matrix.
* **n** *(int)* - The second 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 ### Returns
......
...@@ -17,8 +17,8 @@ def spspmm(indexA, valueA, indexB, valueB, m, k, n): ...@@ -17,8 +17,8 @@ def spspmm(indexA, valueA, indexB, valueB, m, k, n):
indexB (:class:`LongTensor`): The index tensor of second sparse matrix. indexB (:class:`LongTensor`): The index tensor of second sparse matrix.
valueB (:class:`Tensor`): The value 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. m (int): The first dimension of first corresponding dense matrix.
k (int): The second dimension of first corresponding dense matrix and first k (int): The second dimension of first corresponding dense matrix and
dimension of second corresponding dense matrix. first dimension of second corresponding dense matrix.
n (int): The second dimension of second corresponding dense matrix. n (int): The second dimension of second corresponding dense matrix.
:rtype: (:class:`LongTensor`, :class:`Tensor`) :rtype: (:class:`LongTensor`, :class:`Tensor`)
......
...@@ -2,7 +2,7 @@ import torch ...@@ -2,7 +2,7 @@ import torch
from torch_sparse import to_scipy, from_scipy, coalesce 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. """Transposes dimensions 0 and 1 of a sparse tensor.
Args: Args:
...@@ -10,7 +10,8 @@ def transpose(index, value, m, nm coalesce=True): ...@@ -10,7 +10,8 @@ def transpose(index, value, m, nm coalesce=True):
value (:class:`Tensor`): The value tensor of sparse matrix. value (:class:`Tensor`): The value tensor of sparse matrix.
m (int): The first dimension of corresponding dense matrix. m (int): The first dimension of corresponding dense matrix.
n (int): The second 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`) :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