Skip to content

Commit 4ce5419

Browse files
authored
add deepcopy (#25)
1 parent 9194875 commit 4ce5419

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

i6_models/parts/conformer/convolution.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
__all__ = ["ConformerConvolutionV1", "ConformerConvolutionV1Config"]
44

55
from dataclasses import dataclass
6+
from copy import deepcopy
67

78
import torch
89
from torch import nn
@@ -60,7 +61,7 @@ def __init__(self, model_cfg: ConformerConvolutionV1Config):
6061
)
6162
self.pointwise_conv2 = nn.Linear(in_features=model_cfg.channels, out_features=model_cfg.channels)
6263
self.layer_norm = nn.LayerNorm(model_cfg.channels)
63-
self.norm = model_cfg.norm
64+
self.norm = deepcopy(model_cfg.norm)
6465
self.dropout = nn.Dropout(model_cfg.dropout)
6566
self.activation = model_cfg.activation
6667

0 commit comments

Comments
 (0)