Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 389675343
  • Loading branch information
fyangf authored and tensorflower-gardener committed Aug 9, 2021
1 parent 468f201 commit 66ddb0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions official/vision/beta/modeling/backbones/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
# Each element in the block configuration is in the following format:
# (block_fn, num_filters, block_repeats)
RESNET_SPECS = {
10: [
('residual', 64, 1),
('residual', 128, 1),
('residual', 256, 1),
('residual', 512, 1),
],
18: [
('residual', 64, 2),
('residual', 128, 2),
Expand Down
2 changes: 2 additions & 0 deletions official/vision/beta/modeling/backbones/resnet_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
class ResNetTest(parameterized.TestCase, tf.test.TestCase):

@parameterized.parameters(
(128, 10, 1),
(128, 18, 1),
(128, 34, 1),
(128, 50, 4),
Expand All @@ -38,6 +39,7 @@ def test_network_creation(self, input_size, model_id,
endpoint_filter_scale):
"""Test creation of ResNet family models."""
resnet_params = {
10: 4915904,
18: 11190464,
34: 21306048,
50: 23561152,
Expand Down

0 comments on commit 66ddb0c

Please sign in to comment.