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
10643806
"examples/pytorch/vscode:/vscode.git/clone" did not exist on "7784f0668d41ebde6c6d92785cd47f02fd983db1"
Commit
10643806
authored
Aug 14, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 326722720
parent
6e3b5a08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
official/nlp/tasks/sentence_prediction_test.py
official/nlp/tasks/sentence_prediction_test.py
+3
-0
No files found.
official/nlp/tasks/sentence_prediction_test.py
View file @
10643806
...
...
@@ -248,6 +248,9 @@ class SentencePredictionTaskTest(tf.test.TestCase, parameterized.TestCase):
predictions
=
sentence_prediction
.
predict
(
task
,
test_data_config
,
model
)
self
.
assertLen
(
predictions
,
num_examples
)
for
prediction
in
predictions
:
self
.
assertEqual
(
prediction
.
dtype
,
tf
.
int64
if
num_classes
>
1
else
tf
.
float32
)
if
__name__
==
"__main__"
:
...
...
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