Skip to content

Commit

Permalink
fix typo in resnet definition (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
eqy authored and tqchen committed Oct 26, 2018
1 parent 0f7aa30 commit 44df04a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/tvm/relay/testing/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def residual_unit(data,
bn1 = layers.batch_norm_infer(data=data,
epsilon=2e-5,
name=name + '_bn1')
act1 = relay.relu(data=bn1)
act1 = relay.nn.relu(data=bn1)
conv1 = layers.conv2d(
data=act1,
channels=int(num_filter*0.25),
Expand All @@ -69,12 +69,12 @@ def residual_unit(data,
padding=(0, 0),
name=name + '_conv1')
bn2 = layers.batch_norm_infer(data=conv1, epsilon=2e-5, name=name + '_bn2')
act2 = relay.relu(data=bn2)
act2 = relay.nn.relu(data=bn2)
conv2 = layers.conv2d(
data=act2, channels=int(num_filter*0.25), kernel_size=(3, 3),
strides=(1, 1), padding=(1, 1), name=name + '_conv2')
bn3 = layers.batch_norm_infer(data=conv2, epsilon=2e-5, name=name + '_bn3')
act3 = relay.relu(data=bn3)
act3 = relay.nn.relu(data=bn3)
conv3 = layers.conv2d(
data=act3, channels=num_filter, kernel_size=(1, 1),
strides=(1, 1), padding=(0, 0), name=name + '_conv3')
Expand Down Expand Up @@ -120,7 +120,7 @@ def resnet(units,
Number of units in each stage
num_stages : int
Number of stage
Number of stages
filter_list : list
Channel size of each stage
Expand Down

0 comments on commit 44df04a

Please sign in to comment.