Make the hyperlink of NVIDIA Apex clickable
This commit is contained in:
committed by
GitHub
parent
7cc35c3104
commit
f91ce0b803
@@ -217,7 +217,7 @@ class BertConfig(object):
|
|||||||
try:
|
try:
|
||||||
from apex.normalization.fused_layer_norm import FusedLayerNorm as BertLayerNorm
|
from apex.normalization.fused_layer_norm import FusedLayerNorm as BertLayerNorm
|
||||||
except ImportError:
|
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):
|
class BertLayerNorm(nn.Module):
|
||||||
def __init__(self, hidden_size, eps=1e-12):
|
def __init__(self, hidden_size, eps=1e-12):
|
||||||
"""Construct a layernorm module in the TF style (epsilon inside the square root).
|
"""Construct a layernorm module in the TF style (epsilon inside the square root).
|
||||||
|
|||||||
Reference in New Issue
Block a user