Commit 0767c39c authored by Thorsten Kurth's avatar Thorsten Kurth
Browse files

replacing more torch.tensor with torch.as_tensor

parent 5a6d52dd
......@@ -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))
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:
n1 = n - 1
......
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