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
ModelZoo
ResNet50_tensorflow
Commits
322d2eb7
Commit
322d2eb7
authored
Jul 28, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 323627192
parent
006df625
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/nlp/xlnet/xlnet_modeling.py
official/nlp/xlnet/xlnet_modeling.py
+2
-2
No files found.
official/nlp/xlnet/xlnet_modeling.py
View file @
322d2eb7
...
@@ -15,13 +15,13 @@
...
@@ -15,13 +15,13 @@
"""Keras layers of XLNet model in TF 2.0."""
"""Keras layers of XLNet model in TF 2.0."""
import
copy
import
copy
import
functools
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.nlp.xlnet
import
data_utils
from
official.nlp.xlnet
import
data_utils
gelu
=
functools
.
partial
(
tf
.
keras
.
activations
.
gelu
,
approximate
=
True
)
def
gelu
(
x
):
return
tf
.
keras
.
activations
.
gelu
(
x
,
approximate
=
True
)
def
rel_shift
(
x
,
klen
=-
1
):
def
rel_shift
(
x
,
klen
=-
1
):
...
...
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