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-harmonics
Commits
0767c39c
Commit
0767c39c
authored
Jul 21, 2025
by
Thorsten Kurth
Browse files
replacing more torch.tensor with torch.as_tensor
parent
5a6d52dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_harmonics/quadrature.py
torch_harmonics/quadrature.py
+1
-1
No files found.
torch_harmonics/quadrature.py
View file @
0767c39c
...
@@ -169,7 +169,7 @@ def clenshaw_curtiss_weights(n: int, a: Optional[float]=-1.0, b: Optional[float]
...
@@ -169,7 +169,7 @@ def clenshaw_curtiss_weights(n: int, a: Optional[float]=-1.0, b: Optional[float]
tcc
=
torch
.
cos
(
torch
.
linspace
(
math
.
pi
,
0
,
n
,
dtype
=
torch
.
float64
,
requires_grad
=
False
))
tcc
=
torch
.
cos
(
torch
.
linspace
(
math
.
pi
,
0
,
n
,
dtype
=
torch
.
float64
,
requires_grad
=
False
))
if
n
==
2
:
if
n
==
2
:
wcc
=
torch
.
tensor
([
1.0
,
1.0
],
dtype
=
torch
.
float64
)
wcc
=
torch
.
as_
tensor
([
1.0
,
1.0
],
dtype
=
torch
.
float64
)
else
:
else
:
n1
=
n
-
1
n1
=
n
-
1
...
...
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