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
7dcd3f6b
Commit
7dcd3f6b
authored
Aug 27, 2021
by
Yuexin Wu
Committed by
A. Unique TensorFlower
Aug 27, 2021
Browse files
Internal change
PiperOrigin-RevId: 393428352
parent
50c2e475
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/modeling/networks/funnel_transformer_test.py
official/nlp/modeling/networks/funnel_transformer_test.py
+1
-1
No files found.
official/nlp/modeling/networks/funnel_transformer_test.py
View file @
7dcd3f6b
...
@@ -81,7 +81,6 @@ class FunnelTransformerEncoderTest(parameterized.TestCase, tf.test.TestCase):
...
@@ -81,7 +81,6 @@ class FunnelTransformerEncoderTest(parameterized.TestCase, tf.test.TestCase):
self
.
assertAllEqual
(
pooled_dtype
,
pooled
.
dtype
)
self
.
assertAllEqual
(
pooled_dtype
,
pooled
.
dtype
)
@
parameterized
.
named_parameters
(
@
parameterized
.
named_parameters
(
(
"large_stride_no_unpool"
,
3
,
0
),
(
"no_stride_no_unpool"
,
1
,
0
),
(
"no_stride_no_unpool"
,
1
,
0
),
(
"large_stride_with_unpool"
,
3
,
1
),
(
"large_stride_with_unpool"
,
3
,
1
),
(
"large_stride_with_large_unpool"
,
5
,
10
),
(
"large_stride_with_large_unpool"
,
5
,
10
),
...
@@ -115,6 +114,7 @@ class FunnelTransformerEncoderTest(parameterized.TestCase, tf.test.TestCase):
...
@@ -115,6 +114,7 @@ class FunnelTransformerEncoderTest(parameterized.TestCase, tf.test.TestCase):
expected_data_shape
[
1
]
=
unpool_length
+
(
expected_data_shape
[
1
]
+
expected_data_shape
[
1
]
=
unpool_length
+
(
expected_data_shape
[
1
]
+
pool_stride
-
1
-
pool_stride
-
1
-
unpool_length
)
//
pool_stride
unpool_length
)
//
pool_stride
print
(
"shapes:"
,
expected_data_shape
,
data
.
shape
.
as_list
())
self
.
assertAllEqual
(
expected_data_shape
,
data
.
shape
.
as_list
())
self
.
assertAllEqual
(
expected_data_shape
,
data
.
shape
.
as_list
())
self
.
assertAllEqual
(
expected_pooled_shape
,
pooled
.
shape
.
as_list
())
self
.
assertAllEqual
(
expected_pooled_shape
,
pooled
.
shape
.
as_list
())
...
...
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