Skip to content

Commit

Permalink
Merge pull request #46 from loopinf/feature/32-fix_bug_F_linear
Browse files Browse the repository at this point in the history
Feature/32 fix bug f linear
  • Loading branch information
hyunwoongko authored Sep 28, 2022
2 parents 88ac525 + cf976a1 commit 7af33eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oslo/torch/nn/modules/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ def __init__(
bias: bool = True,
dtype: Optional[torch.dtype] = None,
skip_bias_add: bool = False,
device: torch.device = None,
):
super(Linear, self).__init__(
in_features=in_features,
out_features=out_features,
bias=bias,
device=torch.device(torch.cuda.current_device()),
device=device,
dtype=dtype,
)
self.skip_bias_add = skip_bias_add
Expand Down

0 comments on commit 7af33eb

Please sign in to comment.