Skip to content

Commit

Permalink
🐛Fixed legacy bug (dc57b0f)
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed Jan 18, 2021
1 parent 9a1bf14 commit 745cd42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cflearn/modules/heads/traditional/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ def __init__(
y_ravel: np.ndarray,
categorical: Optional[torch.Tensor],
categorical_dims: Dict[int, int],
**kwargs: Any,
):
super().__init__(in_dim, out_dim)
super().__init__(in_dim, out_dim, **kwargs)
self.categorical_dims = categorical_dims
if categorical is None:
self.mnb = None
Expand Down Expand Up @@ -195,8 +196,9 @@ def __init__(
y_ravel: np.ndarray,
pretrain: bool,
numerical: Optional[torch.Tensor],
**kwargs: Any,
):
super().__init__(in_dim, out_dim)
super().__init__(in_dim, out_dim, **kwargs)
if numerical is None:
self.mu = self.std = self.normal = None
else:
Expand Down

0 comments on commit 745cd42

Please sign in to comment.