Skip to content

Commit

Permalink
add training args to downsample conv to avoid possible low level bug
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardyehuang committed Feb 15, 2022
1 parent 71a06b8 commit 54ce0f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backbones/hrnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def call(self, inputs, training=None):
residual = tf.identity(inputs, name="residual")

if self.downsample is not None:
residual = self.downsample(residual)
residual = self.downsample(residual, training=training)

x = self.conv1(inputs)
x = self.bn1(x, training=training)
Expand Down Expand Up @@ -85,7 +85,7 @@ def call(self, inputs, training=None):
residual = tf.identity(inputs, name="residual")

if self.downsample is not None:
residual = self.downsample(residual)
residual = self.downsample(residual, training=training)

x = self.conv1(inputs)
x = self.bn1(x, training=training)
Expand Down

0 comments on commit 54ce0f9

Please sign in to comment.