Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit c45e16d

Browse files
MEZTech-LLCCopybara-Service
authored andcommitted
internal merge of PR #1196
PiperOrigin-RevId: 219710923
1 parent defd57e commit c45e16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/layers/modalities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def top(self, body_output, _):
143143

144144
if self._model_hparams.shared_embedding_and_softmax_weights:
145145
scope_name = "shared"
146-
reuse = True
146+
reuse = tf.AUTO_REUSE
147147
else:
148148
scope_name = "softmax"
149149
reuse = False

0 commit comments

Comments
 (0)