Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bottleneck between conv in residual stack #187

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tf/tfprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def __init__(self, cfg):

# Network structure
self.RESIDUAL_FILTERS = self.cfg['model']['filters']
self.RESIDUAL_INNER_FILTERS = self.cfg['model'].get('inner_filters', self.RESIDUAL_FILTERS)
self.RESIDUAL_BLOCKS = self.cfg['model']['residual_blocks']
self.SE_ratio = self.cfg['model']['se_ratio']
self.policy_channels = self.cfg['model'].get('policy_channels', 32)
Expand Down Expand Up @@ -1070,7 +1071,7 @@ def conv_block(self,
conv, name=name + '/bn', scale=bn_scale))

def residual_block(self, inputs, channels, name):
conv1 = tf.keras.layers.Conv2D(channels,
conv1 = tf.keras.layers.Conv2D(self.RESIDUAL_INNER_FILTERS,
3,
use_bias=False,
padding='same',
Expand Down