Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-sparse
Commits
6af9980d
Commit
6af9980d
authored
May 16, 2020
by
rusty1s
Browse files
fixed f-string
parent
bcc8106e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torch_sparse/cat.py
torch_sparse/cat.py
+2
-2
No files found.
torch_sparse/cat.py
View file @
6af9980d
...
...
@@ -137,8 +137,8 @@ def cat(tensors: List[SparseTensor], dim: int) -> SparseTensor:
return
tensors
[
0
].
set_value
(
value
,
layout
=
'coo'
)
else
:
raise
IndexError
(
f
'Dimension out of range: Expected to be in range of '
'[{-tensors[0].dim()}, {tensors[0].dim() - 1}], but got {dim}.'
)
(
f
'Dimension out of range: Expected to be in range of '
f
'[
{
-
tensors
[
0
].
dim
()
}
,
{
tensors
[
0
].
dim
()
-
1
}
], but got
{
dim
}
.'
)
)
def
cat_diag
(
tensors
:
List
[
SparseTensor
])
->
SparseTensor
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment