Skip to content

Commit

Permalink
Fixing small issue with default decay param.
Browse files Browse the repository at this point in the history
  • Loading branch information
RS-Coop committed Jan 12, 2024
1 parent b75821b commit 65a4695
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torch_quadconv/quadconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import torch
import torch.nn as nn
import numpy as np

from .utils.misc import Sin

Expand Down Expand Up @@ -56,7 +57,7 @@ def __init__(self,*,

#decay parameter
if decay_param == None:
self.decay_param = 4/torch.sqrt(self.in_points)
self.decay_param = 4/np.sqrt(self.in_points)
else:
self.decay_param = decay_param

Expand Down

0 comments on commit 65a4695

Please sign in to comment.