"tests/vscode:/vscode.git/clone" did not exist on "c1f6bbab5582957d8ddfb487f9df02e81560e93e"
Commit 2af9696b authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Fix total block num bug in tf2 efficientnet.

PiperOrigin-RevId: 314405729
parent 7580f0a2
......@@ -372,7 +372,8 @@ def efficientnet(image_input: tf.keras.layers.Input,
name='stem')
# Build blocks
num_blocks_total = sum(block.num_repeat for block in blocks)
num_blocks_total = sum(
round_repeats(block.num_repeat, depth_coefficient) for block in blocks)
block_num = 0
for stack_idx, block in enumerate(blocks):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment