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
f8b7b77d
Commit
f8b7b77d
authored
Sep 09, 2021
by
Jialu Liu
Committed by
A. Unique TensorFlower
Sep 09, 2021
Browse files
Internal change
PiperOrigin-RevId: 395697194
parent
0d9ef8d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
official/nlp/projects/teams/teams_pretrainer.py
official/nlp/projects/teams/teams_pretrainer.py
+1
-1
official/nlp/projects/teams/teams_task.py
official/nlp/projects/teams/teams_task.py
+1
-1
No files found.
official/nlp/projects/teams/teams_pretrainer.py
View file @
f8b7b77d
...
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Trainer network for
ELECTRA
models."""
"""Trainer network for
TEAMS
models."""
# pylint: disable=g-classes-have-attributes
import
tensorflow
as
tf
...
...
official/nlp/projects/teams/teams_task.py
View file @
f8b7b77d
...
...
@@ -49,7 +49,7 @@ def _get_generator_hidden_layers(discriminator_network, num_hidden_layers,
def
_build_pretrainer
(
config
:
teams
.
TeamsPretrainerConfig
)
->
teams_pretrainer
.
TeamsPretrainer
:
"""Instantiates
Electra
Pretrainer from the config."""
"""Instantiates
Teams
Pretrainer from the config."""
generator_encoder_cfg
=
config
.
generator
discriminator_encoder_cfg
=
config
.
discriminator
discriminator_network
=
teams
.
get_encoder
(
discriminator_encoder_cfg
)
...
...
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