Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
f91ce0b8
"examples/run_bert_classifier.py" did not exist on "8da280ebbeca5ebd7561fd05af78c65df9161f92"
Unverified
Commit
f91ce0b8
authored
Mar 09, 2019
by
Bharat Raghunathan
Committed by
GitHub
Mar 09, 2019
Browse files
Make the hyperlink of NVIDIA Apex clickable
parent
7cc35c31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_pretrained_bert/modeling.py
pytorch_pretrained_bert/modeling.py
+1
-1
No files found.
pytorch_pretrained_bert/modeling.py
View file @
f91ce0b8
...
...
@@ -217,7 +217,7 @@ class BertConfig(object):
try
:
from
apex.normalization.fused_layer_norm
import
FusedLayerNorm
as
BertLayerNorm
except
ImportError
:
logger
.
info
(
"Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex."
)
logger
.
info
(
"Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex
."
)
class
BertLayerNorm
(
nn
.
Module
):
def
__init__
(
self
,
hidden_size
,
eps
=
1e-12
):
"""Construct a layernorm module in the TF style (epsilon inside the square root).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment