Skip to content

Instantly share code, notes, and snippets.

@THEFASHIONGEEK
Created February 18, 2020 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save THEFASHIONGEEK/2500b1d0dd976b9a49af7d0d077affea to your computer and use it in GitHub Desktop.
Save THEFASHIONGEEK/2500b1d0dd976b9a49af7d0d077affea to your computer and use it in GitHub Desktop.
def final_block(pooling_branch_channels=32, pool_type="avg"):
network = []
#Create subnetwork and add branches
subnetwork = []
branch_1 = first_branch()
branch_2 = second_branch()
branch_3 = third_branch()
branch_4 = fourth_branch(pooling_branch_channels=pooling_branch_channels,
pool_type=pool_type)
subnetwork.append(branch_1)
subnetwork.append(branch_2)
subnetwork.append(branch_3)
subnetwork.append(branch_4)
# Add merging element
subnetwork.append(gtf.concatenate())
# Add the subnetwork
network.append(subnetwork)
return network
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment