We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5a222e commit 5a1eb44Copy full SHA for 5a1eb44
.gitignore
@@ -3,6 +3,7 @@
3
__pycache__/
4
*.py[cod]
5
*$py.class
6
+libai/config/configs
7
8
# C extensions
9
*.so
libai/layers/embedding.py
@@ -148,7 +148,8 @@ def __init__(
148
)
149
150
# Initialize the word embedding
151
- self.init_method(self.weight)
+ if os.getenv("ONEFLOW_LINEAR_EMBEDDING_SKIP_INIT", "0") != "1":
152
+ self.init_method(self.weight)
153
# FIXME(Lxy): Fill padding_idx is not supported in nd_sbp right now.
154
# self._fill_padding_idx_with_zero()
155
0 commit comments